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 obj = {
a: 1,
b: 2,
c: 3
};
var mapObj = new Map();
mapObj.set('a', 1);
mapObj.set('b', 2);
mapObj.set('c', 3);
var x = {};
var y = {};
var z = {};
var mapObj2 = new Map();
mapObj2.set(x, 1);
mapObj2.set(y, 2);
mapObj2.set(z, 3);
var results = [];
var results = [];
Ready to run.
Test | Ops/sec | |
---|---|---|
Obj access |
| ready |
Map access |
| ready |
Map non-key access |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.