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 array = [], result;
(function () {
var i, j, cur;
for (i = 0, j = 2000; i < j; i++) {
cur = "" + ((i % 5) + 1);
array.push(cur);
}
}());*/
var array, result;
array = ["/62","/15","/65","/62","/15","/08","/01","/65","/62","/65","/62","/15","/01"];
Ready to run.
Test | Ops/sec | |
---|---|---|
IndexOf Same Array |
| ready |
IndexOf Result Array |
| ready |
IndexOf Same Array in Filter |
| ready |
IndexOf Temp in Filter |
| ready |
Hash Populate (With In) Get Keys |
| ready |
Hash Populate (With Truthy Check) Get Keys |
| ready |
Hash Populate (With In) Fill Result |
| ready |
Hash Populate (With Truthy Check) Fill Result |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.