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
After seeing http://jsperf.com/javascript-associative-vs-non-associative-arrays, I thought the test could be improved.
var i,
obj = {}, arr1 = new Uint32Array(100000), arr2 = [], arr3 = [];
for(i = 0; i < 100000; i += 1) {
var p1 = i, p2 = i*i, p3 = Math.sin(i);
obj[i] = {p1:p1, p2:p2, p3:p3};
arr1[i] = p1;
arr2[i] = p2;
arr3[i] = p3;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Array Performance |
| ready |
Obj perf |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.