The benchmarking script used for jsPerf, benchmark.js
, is a heavily modified version of the excellent JSLitmus by Robert Kieffer. It uses adaptive test cycles, meaning every test will roughly take the same amount of time, regardless of the operation. Thanks to this awesome feature, jsPerf tests can be run in any browser, on any device โ including smartphones.
A lot has changed between JSLitmus and benchmark.js
. Feel free to fork if you see possible improvements!
โ Mathias