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
Benchmarking string methods given in airbnb's style guide
var items = ['This is a super long error that ',
'was thrown because of Batman.',
'When you stop to think about ',
'how Batman had anything to do ',
'with this, you would get nowhere ',
'fast.'];
Ready to run.
Test | Ops/sec | |
---|---|---|
Long string without breaks |
| ready |
Long string with breaks |
| ready |
Long string with concats |
| ready |
Long string with join() |
| ready |
Long string with join() on existing table (to remove the array creation from the benchmark) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.