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
var baseText = 'Erosion takes 1 year'
var n = '123';
var m = 'units';
function replace(str, a, b) {
return str.replace('1 year', `${a} ${b}`);
}
function literal(a, b) {
return `Erosion takes ${a} ${b}`;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Template Literal |
| ready |
String Replace |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.