GithubHelp home page GithubHelp logo

nethttp_ab's Introduction

Simple tool to benchmark sites (rpm, response time, etc)

EXAMPLES:

3 concurrent threads and 100 total requests:
nethttp_ab -n100 -c3 http://www.yoursite.com

OR simulate one user and follow all local links on the page:
nethttp_ab -f http://localhost:3000

OR simulate a user who will follow all inner links until depth 2
that is [main_pages_links]:depth0 => [link1, link2, link3]:depth1 => [link11, link12, link21, link22, link31]:depth2
nethttp_ab -f2 http://localhost:3000

OR simulate 3 users (all local links on the page will be visited once)
nethttp_ab --follow_links -c3 http://localhost:3000


Also you could add --verbose or -v option to check which urls being requested in follow_links mode.


Issue tracker: https://github.com/german/nethttp_ab/issues


Copyright © 2011 Dmitrii Samoilov, released under the MIT license

nethttp_ab's People

Contributors

german avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nethttp_ab's Issues

HTTP request path is empty

When I bencmarking some sites with follow links parameter I get error "HTTP request path is empty".

Example:

nethttp_ab -f http://www.0629.com.ua/

Found ["/pogoda.php", "http://www.0629.com.ua", "/news.html", "/catalog", "/doska", "/job", "http://www.0629.com.ua/auto", "/dosug", "/afisha", "/blog/", "/spravka.php", "/transport.php", "/golos.php", "/map", "http://www.0629.com.ua/photovistavka/15", "http://www.0629.com.ua/p/top50/", "http://www.0629.com.ua/profiles.php", "http://www.0629.com.ua/miss2008.php", "http://www.0629.com.ua/photoconcurs.php?id=6", "http://www.0629.com.ua/photovistavka/2", "http://www.0629.com.ua/liga/", "http://www.0629.com.ua/football/", "http://www.0629.com.ua/p/mini", "http://www.0629.com.ua/vybory.html", "http://www.0629.com.ua/elections/2", "http://www.0629.com.ua/blog/blog/odinden/", "http://www.0629.com.ua/blog/blog/faces/", "/", "/redirect/url?url=http://vkontakte.ru/club2967907", "/redirect/url?url=http://facebook.com/mariupol", "/redirect/url?url=http://twitter.com/0629ComUa", "http://www.0629.com.ua/blog/blog/odinden/475.html", "http://www.0629.com.ua/photovistavka/25", "http://www.0629.com.ua/p/pobedacup", "/kabinet", "index.html", "news.html", "http://www.0629.com.ua/catalog", "http://www.0629.com.ua/doska", "http://www.0629.com.ua/job", "dosug/index.php", "http://www.0629.com.ua/afisha", "spravka.php", "transport.php", "pogoda.php", "http://www.0629.com.ua/map", "golos.html", "http://www.0629.com.ua/blog/", "/afisha/1", "akcii.php", "miss2008.php", "profiles.php", "photoconcurs.php?id=6", "/photovistavka/2/", "/football/", "/elections/2", "catalog.html", "/dosug/", "redirect/url?url=http%3A%2F%2Fkvartirkin.0629.com.ua", "http://www.0629.com.ua/newscat-13.html", "news-13174.html", "news-13174.html#comment", "news-13173.html", "news-13173.html#comment", "news-13171.html", "news-13171.html#comment", "news-13170.html", "news-13170.html#comment", "news-13169.html", "news-13169.html#comment", "news-13168.html", "news-13168.html#comment", "news-13167.html", "news-13167.html#comment", "redirect/url?url=http%3A%2F%2Fwww.stst.in.ua%2F", "news-13166.html", "news-13166.html#comment", "news-13164.html", "news-13164.html#comment", "news-13165.html", "news-13165.html#comment", "news-13162.html", "news-13162.html#comment", "news-13163.html", "news-13163.html#comment", "news-13161.html", "news-13161.html#comment", "news-13159.html", "news-13159.html#comment", "news-13160.html", "news-13160.html#comment", "news-13158.html", "news-13158.html#comment", "news-13157.html", "news-13157.html#comment", "news-13155.html", "news-13155.html#comment", "news-13154.html", "news-13154.html#comment", "http://www.0629.com.ua/statistic/", "http://www.0629.com.ua/blog/blog/odinden/461.html", "http://www.0629.com.ua/news-12957.html", "http://www.0629.com.ua/photovistavka/19", "http://www.0629.com.ua/photovistavka/23", "catalog", "/catalog/add", "catalog/full/14490", "catalog/37/387", "catalog/full/12973", "catalog/full/11354", "catalog/22/227", "catalog/full/535", "catalog/53/8", "catalog/full/403", "catalog/53/13", "catalog/full/14860", "catalog/full/14603", "catalog/15/20", "catalog/full/14324", "catalog/full/14737", "catalog/53/4", "catalog/full/10424", "catalog/49/230", "catalog/full/556", "catalog/40/254", "catalog/full/11687", "catalog/26/121", "catalog/full/14066", "catalog/45/323", "catalog/full/14623", "catalog/16/28", "catalog/full/11360", "catalog/28/140", "catalog/full/14779", "catalog/53/500", "catalog/full/10280", "catalog/20/49", "catalog/full/13340", "catalog/16/27", "catalog/full/10544", "catalog/32/148", "catalog/full/12220", "catalog/42/374", "registration.php", "redirect/url?url=http%3A%2F%2Fwww.vestnik.com.ua", "spravka_cashdispensers.php", "/dosug/8", "trans_auto.php?id_trans=2", "trans_auto.php?id_trans=6", "trans_auto.php?id_trans=3", "trans_auto.php?id_trans=4", "trans_taxi.php", "trans_auto.php?id_trans=5", "redirect/url?url=http%3A%2F%2Fwww.0629.com.ua%2Fcatalog%2Ffull%2F13859", "/statistic/", "http://www.0629.com.ua/copyright.php", "http://www.0629.com.ua/ads.php", "/news.xml", "http://yandex.ru/cy?base=0&host=www.0629.com.ua"] local links
/home/vodafon/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/net/http.rb:1660:in initialize': HTTP request path is empty (ArgumentError) from /home/vodafon/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/net/http.rb:1779:ininitialize'
from /home/vodafon/.rvm/gems/ruby-1.9.2-p0@v300/gems/nethttp_ab-0.0.4/lib/requester.rb:118:in new' from /home/vodafon/.rvm/gems/ruby-1.9.2-p0@v300/gems/nethttp_ab-0.0.4/lib/requester.rb:118:inblock (2 levels) in start_threads'

ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.