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 str = "abstract event new struct as explicit null switch base extern object this bool false operator throw break finally out true byte fixed override try case float params typeof catch for private uint char foreach protected ulong checked goto public unchecked class if readonly unsafe const implicit ref ushort continue in return using decimal int sbyte virtual default interface sealed volatile delegate internal short void do is sizeof while double lock stackalloc else long static enum namespace string";
var needle = "public";
var r = new RegExp('public');
var ri = new RegExp('public', 'i');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
regex |
| ready |
indexof |
| ready |
RegExp |
| ready |
Cached RegExp |
| ready |
regex case insensitive |
| ready |
indexOf case insensitive |
| ready |
RegExp case insensitive |
| ready |
cached RegExp case insensitive |
| ready |
split |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.