Skip to content

stefanpenner/do-you-even-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Do you even bench

basic example:

require('do-you-even-bench')([
  { name: 'test 1', fn: function() { ... } },
  { name: 'test 2', fn: function() { ... } },
  { name: 'test 3', fn: function() { ... } },
]);

example /w setup

require('do-you-even-bench', [
  {
    name: 'test 1',
    setup: function() {
      var data = calcuateData();
    },

    fn: function() { 
      expensiveThing(data); 
    }
  },
]);

testing in the browsers

curl http://git.io/vZtJK > index.html
browserify <file-containing-test.js> > out.js
open index.html

About

quick and dirty benchmark.js wrapper for us simple folk

Resources

Stars

Watchers

Forks

Packages

No packages published