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 a = 1;
var b = 2.15923;
var c = 0xFFFFFF | 0;
var d = 'asdf';
var e = 'i should be undefined';
var obj = {};
obj[a] = a;
obj[b] = b;
obj[c] = c;
obj[d] = d;
var map = new Map();
map.set(a, a);
map.set(b, b);
map.set(c, c);
map.set(d, d);
Ready to run.
Test | Ops/sec | |
---|---|---|
object get |
| ready |
object set |
| ready |
map get |
| ready |
map set |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.