push

Benchmark created on


Setup

const a = Array.from(Array(5000), (_, i) => i);
const b = [];

Test runner

Ready to run.

Testing in
TestOps/sec
spread
b.push(...a)
ready
iterate
for (const v of a) b.push(v)
ready

Revisions

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