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 words = ['abc', 'def', 'efg', 'xyz', 'verylongword'];
const text = 'sample text. abc. with lots of text lorem ipsum something something. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. xyz. Maecenas ut placerat ligula. Pellentesque vitae urna eget massa facilisis volutpat. Integer non mi arcu. Cras eu hendrerit metus. Donec aliquet iaculis nibh, et tristique lectus commodo nec. Curabitur scelerisque sapien ut mauris commodo hendrerit vel in orci. Ut dapibus accumsan erat, eget sodales metus. Nullam faucibus turpis eget ipsum congue gravida. Fusce finibus id urna in viverra. Nunc at auctor lectus. Pellentesque nec nunc nec risus mollis eleifend ac in nunc. Praesent eget tempus sapien. Suspendisse rhoncus diam id imperdiet ullamcorper. Aenean eleifend turpis nec ligula euismod tincidunt. verylongword'
Ready to run.
Test | Ops/sec | |
---|---|---|
regex |
| ready |
includes |
| ready |
indexOf |
| ready |
includes - cached |
| ready |
indexOf - cached |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.