httpstat: Simple cURL Stats

By  on  

There are a lot of tools out there that do great, advanced things but present them as well as they could be presented.  I wont knock cURL for anything -- it's an amazing tool many of us can't live without;  what I will say, however, is that it's nice having tools on top of cURL for better presentation or extended functionality.

I recently discovered httpstat, which is a single python file which (simply) graphically displays request event timing, from DNS lookup to content transfer:

python httpstat.py https://davidwalsh.name/page/1

httpstat

What you get in the end is an ASCII table showing how long each step took.  Of big interest to me is the "server processing" step -- if this number is large, you can probably do some things to your code or server to speed things up.

Grab httpstat and check out your site speed -- you might not be happy with the numbers!

Recent Features

  • By
    LightFace:  Facebook Lightbox for MooTools

    One of the web components I've always loved has been Facebook's modal dialog.  This "lightbox" isn't like others:  no dark overlay, no obnoxious animating to size, and it doesn't try to do "too much."  With Facebook's dialog in mind, I've created LightFace:  a Facebook lightbox...

  • By
    9 Mind-Blowing Canvas Demos

    The <canvas> element has been a revelation for the visual experts among our ranks.  Canvas provides the means for incredible and efficient animations with the added bonus of no Flash; these developers can flash their awesome JavaScript skills instead.  Here are nine unbelievable canvas demos that...

Incredible Demos

  • By
    Unicode CSS Classes

    CSS class name structure and consistency is really important; some developers camelcase classnames, others use dashes, and others use underscores.  One thing I've learned when toying around by HTML and CSS class names is that you can actually use unicode symbols and icons as classnames.

  • By
    Send Email Notifications for Broken Images Using jQuery AJAX

    It's usually best to repair broken image paths as soon as possible because they can damage a website's credibility. And even worse is having a user tell you about it. Using jQuery and PHP, you can have your page automatically notify you of broken...

Discussion

  1. Hi David, the utility is also available via Homebrew for Mac users.

    Cheers.

  2. Loris

    Off Topic: what is the colour scheme of the terminal in the screenshot?

    • David

      Looks like solarized with a darker background color.

  3. Renok

    There is also a node module wrapper for this up on NPM, works like a charm.

    https://www.npmjs.com/package/httpstat

  4. Awesome script! I’ve always relied on speedgun.io to generate similar stats, but it needs phantomjs.

    Sometimes I just need download info, and this looks like a great option.

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!