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
window.obj = {};
for (var i = 0; i < 25; i++)
obj[i] = Math.random();
window.arr = [];
for (var i = 0; i < 25; i++)
arr[i] = Math.random();
window.items1=[];
items1 = [
['James Bond', 8, 40,'James Bond2', 82, 402],
['Superman', 9999, 36,'Superman2', 99992, 362]
];
window.items2=[];
items2 = [{
Name: 'James Bond', strength: 8,
coolness: 40,
Name2: 'James Bond2', strength2: 82,
coolness2: 402
}, {
Name: 'Superman', strength: 9999,
coolness: 36,
Name2: 'Superman2', strength2: 99992,
coolness2: 362
}];
Ready to run.
Test | Ops/sec | |
---|---|---|
array get a |
| ready |
object get b |
| ready |
object get |
| ready |
array get |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.