Concat ORder

Benchmark created on


Description

Which order does the concat run, matter?

Preparation HTML

<script>
  var a = []
  for (var i = 0; i < 1000; i++) {
     a.push(i);
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Concat short to long
a.concat([1])
ready
Concat long to short
[1].concat(a)
ready

Revisions

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