sdgdfg

Benchmark created on


Setup

const arr1 = new Array(10000).fill(null).map((_, i) => i);
const arr2 = new Array(10000).fill(null).map((_, i) => i);
let arr3 = []

Teardown

console.log(arr3.length)

Test runner

Ready to run.

Testing in
TestOps/sec
push
arr3.push(...arr1);
arr3.push(...arr2);
ready
concat
arr3 = arr1.concat(arr2);
ready

Revisions

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