jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Testing the performance off a method with and without async.js
<script src="//cdnjs.cloudflare.com/ajax/libs/async/0.7.0/async.js"></script>
var callback = callback || function () {};
cb = function(err) {
var args = Array.prototype.slice.call(arguments, 1);
if (args.length <= 1) {
args = args[0];
}
callback.call(null, err, args);
};
fib = function(fn) {
var numMax = 25
for (i = 0, j = 1, k = 0; k < numMax; i = j, j = x, k++) {
x = i + j;
console.log(x);
}
fn(null, x);
};
COUNT = 50;
list = [];
for (var i = 0; i < COUNT; i++) {
list.push(fib);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Normal |
| ready |
Async.js |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.