spread op

Benchmark created on


Setup

const obj = {
	a: 1,
	b: '123456',
	c: [100, 101],
	d: -214,
	e: {aa: 123, bb: 456}
};

Test runner

Ready to run.

Testing in
TestOps/sec
spread op
const obj2 = { ...obj, f: 0 };
ready
copy
const obj2 = {
	a: obj.a,
	b: obj.b,
	c: obj.c,
	d: obj.d,
	e: obj.e,
	f: 0
};
ready

Revisions

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