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
class Foo {
_a = 0
set a(val) {
this._a = val
}
get a() {
return this._a
}
_0 = 0
[0] = 0
set 0(val) {
this._0 = val
}
get 0() {
return this._0
}
}
const plainArray = [0];
const foo = new Foo()
Ready to run.
Test | Ops/sec | |
---|---|---|
Class string getters |
| ready |
Class string setters |
| ready |
Class numeric getters |
| ready |
Class string setters |
| ready |
Plain Array get |
| ready |
Plain Array set |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.