Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanpenner/do-you-even-bench

quick and dirty benchmark.js wrapper for us simple folk
https://github.com/stefanpenner/do-you-even-bench

Last synced: 17 days ago
JSON representation

quick and dirty benchmark.js wrapper for us simple folk

Awesome Lists containing this project

README

        

# Do you even bench

#### basic example:

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

#### example /w setup

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

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

```

### testing in the browsers

```sh
curl http://git.io/vZtJK > index.html
browserify > out.js
open index.html
```