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
Comparing two RegExp and String parsing methods for getting a value from a cookie.
Then adding in Lawnchair's cookie parser, for fun.
<script>
var set = 'name2',
cookie = 'name1=val1;name2=val2;name3=val3';
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
String |
| ready |
RegExp (exec) |
| ready |
Lawnchair |
| ready |
RegExp (match) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.