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
<script>
var foo = {
bar: 5,
getBar: function() {
return this.bar;
}
};
var foo2 = {
get bar() { return foo2._bar; },
_bar : 5
};
var Foo3 = function(){this._bar = 5;};
Object.defineProperty(Foo3.prototype, "bar", {
get: function () {
return this._bar;
},
enumerable: true,
configurable: true
});
var foo3 = new Foo3();
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Direct |
| ready |
Getter function |
| ready |
Getter; |
| ready |
Property (ES5) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.