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
function Test() {
this.clazz = "Test";
}
function Test2() {
this.clazz = "Test2";
}
function Test3() {
this.clazz = "Test3";
}
Test2.prototype = new Test();
Test3.prototype = new Test2();
var result;
var arr = [];
for (var i = 0; i < 1000; i++) {
arr.push(new Test());
}
var ts = [];
for (var i = 0; i < 1000; i++) {
ts.push(new Test());
}
var ts2 = [];
for (var i = 0; i < 1000; i++) {
ts2.push(new Test2());
}
var ts3 = [];
for (var i = 0; i < 1000; i++) {
ts3.push(new Test3());
}
Ready to run.
Test | Ops/sec | |
---|---|---|
instanceof 1 |
| ready |
instanceof 2 |
| ready |
opti worst |
| ready |
opti 0 |
| ready |
opti success |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.