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>
var String_concat = String.prototype.concat;
var data = "apple orange banana blueberry pumelo grapefruit pear acai pineapple cherry durian";
data = data.split(" ");
data = data.concat(data, data, data, data, data, data, data);
// http://jsperf.com/join-vs-concat-dm
// http://jsperf.com/string-building
// http://jsperf.com/string-building-techniques
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
array push and join |
| ready |
array index and join |
| ready |
concat operator |
| ready |
concat method |
| ready |
concat method with multiple args |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.