Concat vs push*

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
concat
const a = [{a: 1}];
const b = [{b:2}]};

const c = a.concat(b);
ready
Push *
const a = [{a: 1}];
const b = [{b:2}]};

const c = a.push(...b);
ready

Revisions

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