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);
const code = "x".charCodeAt(0);
// Initialize the array to a valid ASCII value
// to ensure that NULL isn't doing anything
// weird here.
for (var i = 0; i < data.length; i++) {
data[i] = code;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Many small calls |
| ready |
One big call |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.