1.0.5 • Published 7 years ago

do-you-even-bench v1.0.5

Weekly downloads
8
License
ISC
Repository
github
Last release
7 years ago

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
1.0.5

7 years ago

1.0.4

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago