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
<script>
var yesStr = "abcdefg abcdefg abcdefg random ABCDE";
var noStr = "abcABC1234random.123#$%^&*";
var upperBound = "A".charCodeAt(0);
var lowerBound = "Z".charCodeAt(0);
var upperBound1 = "a".charCodeAt(0);
var lowerBound1 = "z".charCodeAt(0);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Regex check, both cases |
| ready |
For loop |
| ready |
For loop and toLowerCase |
| ready |
Regex check w/ ignore case flag |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.