Your very own internet speed test in NodeJS

A couple weeks ago I was needing a non-flash internet speed test and came across SpeedOf.Me which is pretty cool in that it’s only HTML and Javascript. Then this last week I needed to test some VPN speeds, but couldn’t find anything simple and easy to quickly run on a server. So I came up with my own NodeJS speed tester.

So far it seems fairly accurate despite the poor coding.

Grab the code on github or to try it out yourself.


Comments

4 responses to “Your very own internet speed test in NodeJS”

Leave your response
  1. D Winzell says:

    Thanks for uploading this. I have been looking to host our own speed test for awhile.

    • snoj says:

      No problem. Newer fancier version have been in dev-limbo for a while. Lack of interest on my part I guess. I hope it’s helpful to your business though!

  2. hollari says:

    Running on a Raspberry PI with the latest Jessie Patches :
    node ./bin/speed.js
    events.js:154
    throw er; // Unhandled ‘error’ event
    ^

    Error: write after end
    at ServerResponse.OutgoingMessage.write (_http_outgoing.js:426:15)
    at ReadStream.ondata (_stream_readable.js:536:20)
    at emitOne (events.js:90:13)
    at ReadStream.emit (events.js:182:7)
    at ReadStream.Readable.read (_stream_readable.js:368:10)
    at flow (_stream_readable.js:751:26)
    at ServerResponse. (_stream_readable.js:609:7)
    at emitNone (events.js:80:13)
    at ServerResponse.emit (events.js:179:7)
    at Socket.ondrain (_http_common.js:215:44)

    • snoj says:

      Evening hollari,

      I’ve used speedtest this past summer at work and I want to say it’s worked with v6.* releases. I’ll try to remember to check tomorrow when I’m able.

      For grins and giggles, what does “node -v” say?

      Thanks!