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 = {
ypjlvs: 23,
odypvr: 3,
kkflew: 4,
exgqfq: 15,
yjxkft: 16,
enwdhe: 16,
rjqoyx: 21,
ahppci: 15,
rgzdka: 25,
mpohsu: 25,
actions: 'action1 action2 action3',
actions2: 'action1 action2 action3',
val1: 1,
val2: 1,
val3: 1
}
var createObj = Object.create(null);
for (var x in Object.keys(obj)) {
createObj[x] = obj[x];
}
Ready to run.
Test | Ops/sec | |
---|---|---|
hasOwnProperty |
| ready |
in |
| ready |
undefined |
| ready |
undefined typeof |
| ready |
Truthy |
| ready |
in createObj |
| ready |
undefined createObj |
| ready |
Truthy createObj |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.