Array Spread vs Concat (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Spread
const a = [1,2,3]
const b = [4,5,6]

a.push(...b)
ready
Concat
let a = [1,2,3]
let b = [4,5,6]

a.concat(b)
ready

Revisions

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