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
Test which is faster - to lowercase the search string or to use regexp
<script>
var str = "http://a.cubicleoffers.com/script/layer/serve?format=1&img=true&cid=layer_fr&isps=true&cbs=0.4320885317865759&sid=14567725629&terms=kids%20toys%2C%20kids%2C%20toys%2C%20games%2C%20uk&keywords=kids%20toys%2C%20kids%2C%20toys%2C%20games%2C%20uk&dm=very.co.u";
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Regexp |
| ready |
indexOf |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.