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
const bar = Symbol('bar');
const baz = Symbol.for('baz');
const value = {
x: Math.random(),
foo: function() { return 3 * this.x; },
[bar]: function() { return 3 * this.x; },
[baz]: function() { return 3 * this.x; }
}
function f(v) {
return v.foo();
}
function g(v) {
return v[bar]();
}
function h(v) {
return v[baz]();
}
Ready to run.
Test | Ops/sec | |
---|---|---|
String Property |
| ready |
Private Symbol Property |
| ready |
Global Symbol Property (via lookup) |
| ready |
Global Symbol Property (via reference) |
| ready |
Private Symbol Property (via function call) |
| ready |
Global Symbol Property (via reference and function call) |
| ready |
String Property (via function call) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.