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 utf8Decoder = new TextDecoder();
const data = new Uint8Array(100_000);
for (var i = 0; i < data.length;) {
// Initialize to a repeated sequence of
// "xx€" to test both 1-byte and 3-byte
// utf8 decoding performance.
data[i++] = 120; // 'x'
data[i++] = 120; // 'x'
data[i++] = 226; // '€' byte 1
data[i++] = 130; // '€' byte 2
data[i++] = 172; // '€' byte 3
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Many small calls |
| ready |
Changed bindings |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.