german / nethttp_ab Goto Github PK
View Code? Open in Web Editor NEWSimple tool to benchmark sites (rpm, response time, etc)
License: MIT License
Simple tool to benchmark sites (rpm, response time, etc)
License: MIT License
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
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:in
initialize'
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:in
block (2 levels) in start_threads'
ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.