Large array single item (v3)

Revision 3 publishedon

Setup

const a = [];
for (let i = 0; i<10000; i++) a.push(i);
let b = 5;

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 3
publishedon