{"ScriptPreparationCode":null,"TestCases":[{"Name":"object spread","Code":"const obj = {};\r\nfor(i=0;i\u003C100000;i\u002B\u002B){\r\n obj[i] = \u0027some long string which will need to be copied\u0027;\r\n}\r\n\r\nconst obj2 = {key: \u0027This is final object\u0027}\r\n\r\nconst final = {obj2, ...obj};\r\n\r\nfor(i=0;i\u003C100000;i\u002B\u002B){\r\n final[i] = \u0027some long string which will need to be copied\u0027;\r\n}\r\n","IsDeferred":false},{"Name":"immutable-js","Code":"const obj = {};\r\nfor(i=0;i\u003C100000;i\u002B\u002B){\r\n obj[i] = \u0027some long string which will need to be copied\u0027;\r\n}\r\nconst immObj = Immutable.Map(obj);\r\n\r\nconst obj2 = {key: \u0027This is final object\u0027}\r\n\r\nconst final = immObj.merge(obj2);\r\n\r\nfor(i=0;i\u003C100000;i\u002B\u002B){\r\n final.set(i,\u0027some long string which will need to be copied\u0027);\r\n}","IsDeferred":false},{"Name":"No copying","Code":"const obj = {key: \u0027This is final object\u0027};\r\nfor(i=0;i\u003C100000;i\u002B\u002B){\r\n obj[i] = \u0027some long string which will need to be copied\u0027;\r\n}\r\nfor(i=0;i\u003C100000;i\u002B\u002B){\r\n obj[i] = \u0027some long string which will need to be copied\u0027;\r\n}","IsDeferred":false}]}