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
Test specific access method to an object property.
<script>
var obj = {
_x: 0,
_y: 0,
get x() { return this._x; },
set x(val) { this._x = val; }
};
obj.prototype = {
get y() { return this._y; },
set y(val) { this._y = val; }
}
</script>
obj._x = 0;
obj._y = 0;
Ready to run.
Test | Ops/sec | |
---|---|---|
get/set on object |
| ready |
get/set on prototype |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.