RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Measuring web server response time from the command line

HTTPing is a command-line tool that shows interactively tests a remote website and measures its response time a la ICMP ping. It’s on gemcutter, so to install simply: sudo gem install httping – or you can get and fork it on GitHub.

Comments

jpignata@populuxe:~$ httping --count 10 --user-agent "HTTPinger" <http://www.google.com>
5 kb from <http://www.google.com/:> code=200 msg=OK time=51 msecs
5 kb from <http://www.google.com/:> code=200 msg=OK time=61 msecs
 ...
 --- <http://www.google.com/> httping.rb statistics ---
 10 GETs transmitted
 round-trip min/avg/max = 48 msecs/61 msecs/106 msecs

It can also return JSON for use in network monitoring systems:

jpignata@populuxe:~$ httping -j <http://www.google.com>
{"results": {"max": 0.120609, "avg": 0.0946966, "min": 0.061993}, "sent": 5, "uri": "http://www.google.com/"}

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in