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
function error(e) {
throw new Error(e)
}
function createBoard() {
return positions.reduce((acc, p) => {
acc[p] = null
return acc
}, {})
}
const positions = [
'f11',
'e10',
'f10',
'g10',
'd9',
'e9',
'f9',
'g9',
'h9',
'c8',
'd8',
'e8',
'f8',
'g8',
'h8',
'i8',
'b7',
'c7',
'd7',
'e7',
'f7',
'g7',
'h7',
'i7',
'k7',
'a6',
'b6',
'c6',
'd6',
'e6',
'f6',
'g6',
'h6',
'i6',
'k6',
'l6',
'a5',
'b5',
'c5',
'd5',
'e5',
'f5',
'g5',
'h5',
'i5',
'k5',
'l5',
'a4',
'b4',
'c4',
'd4',
'e4',
'f4',
'g4',
'h4',
'i4',
'k4',
'l4',
'a3',
'b3',
'c3',
'd3',
'e3',
'f3',
'g3',
'h3',
'i3',
'k3',
'l3',
'a2',
'b2',
'c2',
'd2',
'e2',
'f2',
'g2',
'h2',
'i2',
'k2',
'l2',
'a1',
'b1',
'c1',
'd1',
'e1',
'f1',
'g1',
'h1',
'i1',
'k1',
'l1',
]
const initialPosition = 'b/qbk/n1b1n/r5r/ppppppppp/11/5P5/4P1P4/3P1B1P3/2P2B2P2/1PRNQBKNRP1'
Ready to run.
Test | Ops/sec | |
---|---|---|
0.7.1 |
| ready |
Single loop |
| ready |
Single loop (switch) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.