fattening

Benchmark created on


Setup

const cases = [];

for (let i = 0; i < 65_000; i++) {
	let n = Math.floor(Math.random() * 1000 + 1000)
	cases.push(Array.from({length:n}, () => Math.random()))
}

Test runner

Ready to run.

Testing in
TestOps/sec
concat
[].concat(...cases)
ready
flat
cases.flat(1)
ready
ncocnat
[].concat.apply([], cases)
ready

Revisions

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