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
"how many decimal digits hath 𝑛 ∈ 𝔹𝕀𝔾ℕ" "etc etc"
https://jsperf.app/sutoyu but for bigint
// test 1!...1000!
function test (fn) {
let n = 1n;
for (let i = 1n; i <= 1000n; i++) fn(n *= i);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
using string.length |
| ready |
using repeated mod-tenning (convert to number in loop) |
| ready |
using repeated mod-tenning (convert to numbers w/ map at the end) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.