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
Testing for the existence of characters in a string using Regular Expressions test, search, and match compared to indexOf.
<script>
var str = '00000000-0000-1000-8080-808080808080';
</script>var precompiledRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;Ready to run.
| Test | Ops/sec | |
|---|---|---|
| test | | ready |
| search | | ready |
| match | | ready |
| indexOf match | | ready |
| precompiled test | | ready |
| precompiled search | | ready |
| precompiled match | | ready |
| indexOf no match | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.