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
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
var arrayOfArrays = [
[123, "XY", "bc", "rd"],
[345, "z", 123, "XY", "bc", "rd"],
[456, 123, "XY", "bc", "rd", "K"],
[123, "XY", , 123, "XY", "bc", "rd", "K"],
[345, "z", 456, 123, "XY", "bc", "rd", "K"],
[456, "K", 456, 123, "XY", "bc", "rd", "K"],
[123, "XY"],
[345, "z", 123, "XY", "bc", 345, "z"],
[456, "K"],
[123, 345, "z", 123, "XY", "bc", "XY"],
[345, 345, "z", 123, "XY", "bc", "z"],
[456, "K"],
[123, "XY"],
[345, 345, "z", 123, "XY", "bc", "z"],
[456, "K"],
[123, "XY"],
[345, "z"],
[456, "K"],
[123, "XY", 123, 345, "z", 123, "XY", "bc", "XY"],
[123, "XY", , 123, "XY", "bc", "rd", "K"],
[345, "z", 456, 123, "XY", "bc", "rd", "K"],
[456, "K", 456, 123, "XY", "bc", "rd", "K"],
[123, "XY"],
[345, "z", 123, "XY", "bc", 345, "z"],
[456, "K"],
[123, 345, "z", 123, "XY", "bc", "XY"],
[345, 345, "z", 123, "XY", "bc", "z"],
[456, "K"],
[123, "XY"],
[345, 345, "z", 123, "XY", "bc", "z"],
[456, "K"],
[123, "XY"],
[345, "z"],
[456, "K"],
];
var dummy = []; //just to force attribution
arrayOfArrays = dummy = null;
Ready to run.
Test | Ops/sec | |
---|---|---|
Concat |
| ready |
Join |
| ready |
Functional |
| ready |
Lodash functional |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.