{"ScriptPreparationCode":null,"TestCases":[{"Name":"object spread","Code":"let obj = {sub: {}};\r\nfor(i=0;i\u003C100;i\u002B\u002B){\r\n const key = \u0027key\u0027\u002Bi\r\n const value = \u0027value\u0027\u002Bi\r\n obj = {...obj, sub: { ...obj.sub, [key]: {key, value} }}\r\n}\r\n","IsDeferred":false},{"Name":"immutable-js","Code":"let obj = Immutable.fromJS({a: {}});\r\nfor(i=0;i\u003C100;i\u002B\u002B){\r\n const key = \u0027key\u0027\u002Bi\r\n const value = \u0027value\u0027\u002Bi\r\n obj = obj.setIn([\u0027a\u0027, key], {key, value})\r\n}\r\n","IsDeferred":false},{"Name":"mori","Code":"let hm = mori.hashMap();\r\nhm = mori.assoc.f3(hm, \u0022a\u0022, mori.hashMap());\r\nfor(i=0;i\u003C100;i\u002B\u002B){\r\n const key = \u0027key\u0027\u002Bi\r\n const value = \u0027value\u0027\u002Bi\r\n hm = mori.assoc.f3(\r\n hm, \r\n \u0022a\u0022,\r\n mori.assoc.f3(mori.get(hm, \u0022a\u0022, mori.hashMap()), key, {key, value})\r\n )\r\n}","IsDeferred":false},{"Name":"immer","Code":"let state = {sub: {}};;\r\nfor(i=0;i\u003C100;i\u002B\u002B){\r\n const key = \u0027key\u0027\u002Bi\r\n const value = \u0027value\u0027\u002Bi\r\n state = immer.produce(state, draft =\u003E {\r\n state.sub[key] = {key, value}\r\n })\r\n}","IsDeferred":false}]}