Extending Redux Objects

Benchmark created on


Setup

var asStrng = {
	nums: '0,0,0,0',
	key: '',
};

var asProps = {
	numsTop: 0,
	numsRight: 0,
	numsBottom: 0,
	numsLeft: 0,
	key: '',
};

var asArray = {
	nums: [0, 0, 0, 0],
	key: '',
};

Test runner

Ready to run.

Testing in
TestOps/sec
Strings
var x = {...asStrng, z: true};
ready
Object Properties
var x = {...asProps, z: true};
ready
Array
var x = {...asArray, z: true};
ready

Revisions

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