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
<p id='test'>sdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjd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dshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsdjfhdsfkjdshfsSTRING</p>
<p id="shortString">This contains STRING in this sentence</p>
<script>
// caching this as it can be a bit costly especially in benchmarks
var pattern = /STRING/;
var test = document.getElementById('test').innerHTML;
var shortString = document.getElementById('shortString').innerHTML;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
string.match |
| ready |
string.split |
| ready |
indexOf |
| ready |
regex.test |
| ready |
string.match(regex) |
| ready |
string.match(regex) Short |
| ready |
regex.test Short |
| ready |
split Short |
| ready |
indexOf Short |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.