Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stefanpenner/do-you-even-bench
- Owner: stefanpenner
- Created: 2015-09-06T01:36:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T17:26:26.000Z (over 7 years ago)
- Last Synced: 2024-10-17T18:12:01.955Z (19 days ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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
```