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
<script>
var arr = [];
var asc = {};
var asd = {};
var ase = [];
var asf = [];
var asg0 = 0, asg1 = 1, asg2 = 2;
arr[0] = 0;
arr[1] = 1;
arr[2] = 2;
asc.i0 = 0;
asc.i1 = 1;
asc.i2 = 2;
asd.a = 0;
asd.b = 1;
asd.c = 2;
ase['i0'] = 0;
ase['i1'] = 1;
ase['i2'] = 2;
asf['a'] = 0;
asf['b'] = 1;
asf['c'] = 2;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Object access with numbers |
| ready |
Object Access without numbers |
| ready |
Associative Array with numbers |
| ready |
Associative Array without numbers |
| ready |
Array access |
| ready |
Variable access |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.