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 someTest = () => {}
const getConfig = () => {
const define = {
test: [
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
],
another: [
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
],
some: [
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
]
}
return define.test
}
const getConfigSwitch = () => {
switch('test') {
case 'test':
return [
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
]
case 'hehe':
return [
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
]
default:
return [
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
{hello: 'hello', someTest, test: async () => false},
]
}
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Switch |
| ready |
get config |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.