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
var v = 0 | Math.random() * 9 + 1; // 1 to 9
var sum;
const sumObj = {
1: "A",
2: "B",
3: "C",
4: "D",
5: "E",
6: "F",
7: "G",
8: "H",
9: "I"
};
const sumArr = ['A','B','C','D','E','F','I','G','H','I']
Ready to run.
Test | Ops/sec | |
---|---|---|
if/else strict |
| ready |
Switch-case |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.