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 LObj0 = {
a : 0
};
var LObj1 = {
_a : 0,
get a() {
return this._a;
},
set a(v) {
this._a = v;
}
};
var LObj2 = {
};
Object.defineProperty(LObj2, "a", {
value : 0,
writable : true,
enumerable : true,
configurable : true
});
var LObj3 = {
_a : 0
};
Object.defineProperty(LObj3, "a", {
get : function () { return this._a; },
set : function (v) { this._a = v; },
enumerable : true,
configurable : true
});
function FObj0() {
this.a = 0;
};
FObj0.prototype = {
};
var TObj0 = new FObj0();
function FObj1() {
this._a = 0;
};
FObj1.prototype = {
get a() {
return this._a;
},
set a(v) {
this._a = v;
}
};
var TObj1 = new FObj1();
function FObj2() {
};
FObj2.prototype = {
};
Object.defineProperty(FObj2.prototype, "a", {
value : 0,
writable : true,
enumerable : true,
configurable : true
});
var TObj2 = new FObj2();
function FObj3() {
this._a = 0;
};
FObj3.prototype = {
};
Object.defineProperty(FObj3.prototype, "a", {
get : function () { return this._a; },
set : function (v) { this._a = v; },
enumerable : true,
configurable : true
});
var TObj3 = new FObj3();
Ready to run.
Test | Ops/sec | |
---|---|---|
Literal Plain |
| ready |
Literal GetSet |
| ready |
Literal DefineProp Plain |
| ready |
Literal DefineProp GetSet |
| ready |
Typed Plain |
| ready |
Typed GetSet |
| ready |
Typed DefineProp Plain |
| ready |
Typed DefineProp GetSet |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.