Concat

Benchmark created on


Setup

i = 0;
data = new Array(100).fill(null).map(() => new Array(100).fill(null).map(() => i++));

Test runner

Ready to run.

Testing in
TestOps/sec
push
const result = [];
for (const inner of data) {
	result.push(...inner)
}
ready
concat
[].concat(...data)
ready

Revisions

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