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 arrayCompare = (a1, a2) => (a1.length === a2.length) && a1.every((v,i) => v === a2[i]);
const dataMock = [
['', '', ['']],
['I like cat and tac and act', 'act', [ 'cat', 'tac', 'act' ]],
['Silent lion lets Inlets stilets enlist Listens', 'listen', [ 'Silent', 'Inlets', 'enlist' ]],
['A Aa Aaa aaa aaaa aaaaa aba ', 'aaa', [ 'Aaa', 'aaa' ]],
['Aaa ab ba ba ba Ba Ab bab aabaa aba ', 'ab', [ 'ab', 'ba', 'Ba', 'Ab' ] ]
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Map |
| ready |
Optimized Solution |
| ready |
Int |
| ready |
ChatGPT |
| ready |
Optimized 2 |
| ready |
Optimized 3 |
| ready |
Sort |
| ready |
Interview Solution |
| ready |
Super optimized |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.