Hit the mark with your benchmarks. https://riveragroup.github.io/benchmarksman/
|
10 years ago | |
---|---|---|
example | 11 years ago | |
lib | 10 years ago | |
test | 10 years ago | |
.gitignore | 10 years ago | |
.jshintrc | 10 years ago | |
README.md | 11 years ago | |
benchmarksman.js | 10 years ago | |
main.js | 10 years ago | |
package.json | 10 years ago |
A handy wrapper around benchmark.js to make writing benchmarks as easy as writing test cases (using the mocha exports UI).
Using benchmark.js directly can be a little annoying if you just want it to log ops/sec for a bunch of different code snippets.
benchmarksman bench/array.js
exports.Maths = {
"multiply": function(){
return 2 + 2;
},
"divide": function(){
return 42 / 11;
}
};
if (!module.main) require("benchmarksman").runner(exports);