array shallow copy (v2)

Revision 2 of this benchmark created on


Setup

const x = [];
for (let i = 0; i < 100; i++) x.push(i)

Test runner

Ready to run.

Testing in
TestOps/sec
spread
[...x]
ready
Array.from
Array.from(x)
ready

Revisions

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