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 words = ['thisdadasd', 'isdasdsadas', 'adasdasd', 'testdasdasdsa'];
var counter = 0;
var length = 500;
var i;
var re = /z/;
var result;
var stringConcat = String.prototype.concat;
Ready to run.
Test | Ops/sec | |
---|---|---|
Concat x += '' |
| ready |
Concat x += '', separate substrings |
| ready |
Concat x = x + '' |
| ready |
Concat x = x + '', separate substrings |
| ready |
String.prototype.concat |
| ready |
String.prototype.concat, +'d substring |
| ready |
String.prototype.concat, separate substrings |
| ready |
Array.push, multiple args |
| ready |
Array.push, multiple calls |
| ready |
Array.push, +'d arg |
| ready |
Array assignment |
| ready |
Array assignment, +'d value |
| ready |
Array pre-alloc assignment concat apply |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.