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 = ['this', 'is', 'a', 'test'];
var counter = 0;
var length = 16;
var i;
var re = /z/;
var result;
Ready to run.
Test | Ops/sec | |
---|---|---|
Array.push, multiple args |
| ready |
Array.push, multiple calls |
| ready |
Array.push, +'d arg |
| ready |
Array assignment |
| ready |
Array assignment, +'d value |
| ready |
Straight String concatenation |
| ready |
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 |
You can edit these tests or add more tests to this page by appending /edit to the URL.