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 patts = ['^aa', 'bb$', '^cc$', 'd?d', 'e+', 'ff', 'gg', 'hh', 'ii', 'jj']
const regex = patts.map(el => new RegExp(el, 'iu'))
const monster = new RegExp('(?:' + patts.join(')|(?:') + ')', 'iu');
const values = [
'asdbsbhlbfdkjbdsfbdslf dsn fndsbfdsjbffdslfndsklfndsklnfsdnfjkndskfjdklsjbflkjdsbfkjbdsfkljbsdjkfbksdb fjksbdfjbsdbfjdsbfkjsdbjkfbdsjkfbsdjbfjsdbfjkdsbfjk sdfkj sdh cjksdncknsdcklsndcndskjncsdk csmd kjdscklnsd ajfn f clks dfscfdsncf;ls;',
'00',
'aa',
'bb',
'cc',
'dd',
'ee',
'ff',
'gg',
'hh',
'ii',
'jj',
'100',
'1aa',
'1bb',
'1cc',
'1dd',
'1ee',
'1ff',
'1gg',
'1hh',
'1ii',
'1jj',
'009',
'aa9',
'bb9',
'cc9',
'dd9',
'ee9',
'ff9',
'gg9',
'hh9',
'ii9',
'jj9',
'1009',
'1aa9',
'1bb9',
'1cc9',
'1dd9',
'1ee9',
'1ff9',
'1gg9',
'1hh9',
'1ii9',
'1jj9',
'00',
'aa',
'bb',
'cc',
'dd',
'ee',
'ff',
'gg',
'hh',
'ii',
'jj',
'100',
'1aa',
'1bb',
'1cc',
'1dd',
'1ee',
'1ff',
'1gg',
'1hh',
'1ii',
'1jj',
'009',
'aa9',
'bb9',
'cc9',
'dd9',
'ee9',
'ff9',
'gg9',
'hh9',
'ii9',
'jj9',
'1009',
'1aa9',
'1bb9',
'1cc9',
'1dd9',
'1ee9',
'1ff9',
'1gg9',
'1hh9',
'1ii9',
'1jj9',
]
let acc1 = 0
let acc2 = 0
console.log({acc1, acc2})
Ready to run.
Test | Ops/sec | |
---|---|---|
many-small |
| ready |
one-big |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.