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
var arr1 = [];
var i;
for (i = 0; i < 10;i++) {
arr1[i] = Math.floor(Math.random() * 100);
}
var set1 = new Set(arr1);
var arr2 = [];
for (i = 0; i < 100;i++) {
arr2[i] = Math.floor(Math.random() * 100);
}
var set2 = new Set(arr2);
var arr3 = [];
for (i = 0; i < 1000;i++) {
arr3[i] = Math.floor((Math.random() * 100));
}
var set3 = new Set(arr3);
Ready to run.
Test | Ops/sec | |
---|---|---|
small array |
| ready |
small set |
| ready |
medium array |
| ready |
medium set |
| ready |
large array |
| ready |
large set |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.