Concat

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
.concat()
const arr = ['foo'];
const arr2 = arr.concat('bar')
ready
Spread
const arr = ['foo'];
const arr2 = [...arr, 'bar'];
ready

Revisions

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