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 charList = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "p"];
var charLen = charList.length;
var i, j, v;
var o1 = {
a: 1,
b: 2
};
var o2 = {
c: 1,
d: 2
};
var o3 = {
e: 1,
f: 2
};
var o4 = {
g: 1,
h: 2
};
var o5 = {
h: 1,
k: 2
};
var o6 = {
l: 1,
m: 2
};
var o7 = {
n: 1,
p: 2
};
var o = [o1, o2, o3, o4, o5, o6, o7];
var p7 = {
n: 1,
p: 2,
};
var p6 = {
__proto__: p7,
l: 1,
m: 2
};
var p5 = {
__proto__: p6,
h: 1,
k: 2
};
var p4 = {
__proto__: p5,
g: 1,
h: 2
};
var p3 = {
__proto__: p4,
e: 1,
f: 2
};
var p2 = {
__proto__: p3,
c: 1,
d: 2
};
var p1 = {
__proto__: p2,
a: 1,
b: 2
};
Ready to run.
Test | Ops/sec | |
---|---|---|
Loop |
| ready |
Proto |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.