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
Benchmarking string methods given in airbnb's style guide
function t(s,d){
for(var p in d)
s=s.replace(new RegExp('{'+p+'}','g'), d[p]);
return s;
}
var man = "so";
Ready to run.
Test | Ops/sec | |
---|---|---|
Long string without breaks |
| ready |
Long string with breaks |
| ready |
Long string with concats |
| ready |
TEMPLATE |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.