Benchmark.js

This is just a short note on benchmarking JavaScript code. I recently found the Benchmark.js library, which is used in the popular service jsPerf. It's easier than ever to start benchmarking your JS code! Now you've got no excuse.

Benchmark.stats

Have a look through the API docs. The library has a simple stats object, Benchmark.prototype.stats, which includes mean, margin or error, and standard deviation.