Spread empty object vs. undefined

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Empty Object
const spread = {};
const obj = {
	Hello: 'World',
	...spread
}
ready
Undefined
const spread = undefined;
const obj = {
	Hello: 'World',
	...spread
}
ready

Revisions

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