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
Tests the performance between Javascript's .exec(), .match() and .test().
Note that the .test() testcase doesn't give the same results as the others (it gives only a boolean).
<script>
var regex = /\d+_(\d+)_/;
var value = "asdfjalsdkfj_89734_08934_asdaskjdk";
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
.match() |
| ready |
.exec() |
| ready |
.test() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.