npm install speedometer
var speedometer =var fs =// Let's measure how fast we can read from /dev/urandomvar speed =var stream = fsstream
You can always get the current speed by calling
speedometer uses a 5 second buffer.
To change this simply pass another value to the constructor
var speed = // uses a 20s buffer instead