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
let s = Math.random() > 0.5 ? 1 : -1;
let pow = Math.round(Math.random() * 1000) % 35;
let pows = Math.random() > 0.5 ? 1 : -1;
let fs = Math.random();
let f64 = s * fs * Math.pow(10, pow * pows);
let f32 = Math.fround(f64);
Ready to run.
Test | Ops/sec | |
---|---|---|
String parse |
| ready |
Regex parse |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.