Large array multiple items (v2)

Revision 2 publishedon

Setup

const a = [];
const b = [];
for(let i = 0; i < 10_000; i++){
	a.push(i);
	b.push(i+10_000);
}

Test Runner

Initializing...

Testing in
Test CaseOps/sec
Spread
const c = [...a, ...b]
ready
Concat
const c = a.concat(...b)
ready
Splice
const c = a.toSpliced(a.length, 0, ...b)
ready

Revisions

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

Revision 1
publishedon
Revision 2
publishedon