Array .concat() vs. .push()

Benchmark created by Nyuszika7H on


Preparation HTML

<script>
  var arr = [1, 2];
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
.push()
arr.push(3);
ready
.concat()
arr.concat(4);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.