reducing

Benchmark created on


Setup

const xs = Array(10000).fill(undefined).map((_, i) => ({ [i]: i }))

Test runner

Ready to run.

Testing in
TestOps/sec
throwaway
xs.reduce((acc, v) => ({...acc, ...v}), {})
ready
reusing
xs.reduce((acc, v) => {
	Object.assign(acc, v);
	return acc
}, {})
ready

Revisions

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