/benchrunner

standalone UI on top of benchmark.js

Primary LanguageJavaScriptMIT LicenseMIT

benchrunner is a standalone UI on top of benchmark.js. It will run your benchmarks thru benchmark.js and display the result in a webpage such as this one.

The UI is widely inspired from mocha by TJ Holowaychuk.

It is add #runall to the runner url. The benchmarks will start as soon as the page is loaded.

You add your own suite at the end of the index.html so around here. Here is a sample benchmark bench-example. Here is an bench suite.

benchsuite('current time in ms', function(){
    bench('Date.now()', function() {
        Date.now()
    });
    bench('new Date().getTime()', function() {
        new Date().getTime();
    });
});