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
function t1(x) {
return String(x);
}
function t2(x) {
return new String(x);
}
function t3(x) {
return x + '';
}
function t4(x) {
return x.toString();
}
function t5(x) {
return '' + x;
}
var o = {
toString: function() {
return "87";
}
};Ready to run.
| Test | Ops/sec | |
|---|---|---|
| String Function | | ready |
| String Constructor | | ready |
| Concatenate Empty String | | ready |
| toString Method | | ready |
| Concatenate Empty String at start | | ready |
| Concate Empty String & toString Method | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.