{"ScriptPreparationCode":"arr = [];\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\narr.push({\r\n a: Math.random(),\r\n b: Math.random(),\r\n c: Math.random()\r\n})\r\n}\r\ntotal = 0;","TestCases":[{"Name":"literal spread","Code":"const k = Math.random();\r\ntotal \u002B= arr.map((obj) =\u003E {\r\n return {\r\n d: obj.a \u002B obj.b \u002B k,\r\n ...obj,\r\n };\r\n}).reduce((total, obj) =\u003E {\r\n return total \u002B obj.d / obj.c;\r\n}, 0);\r\n","IsDeferred":false},{"Name":"reuse","Code":"const k = Math.random();\r\nconst r = {\r\n a: 0,\r\n b: 0,\r\n c: 0,\r\n d: 0,\r\n};\r\ntotal \u002B= arr.map((obj) =\u003E {\r\n r.a = obj.a;\r\n r.b = obj.b;\r\n r.c = obj.c;\r\n r.d = obj.a \u002B obj.b \u002B k;\r\n\treturn r;\r\n}).reduce((total, obj) =\u003E {\r\n return total \u002B obj.d / obj.c;\r\n}, 0);","IsDeferred":false},{"Name":"literal","Code":"const k = Math.random();\r\n\r\ntotal \u002B= arr.map((obj) =\u003E {\r\n return {\r\n a: obj.a,\r\n b: obj.b,\r\n c: obj.c,\r\n d: obj.a \u002B obj.b \u002B k,\r\n };\r\n}).reduce((total, obj) =\u003E {\r\n return total \u002B obj.d / obj.c;\r\n}, 0);","IsDeferred":false},{"Name":"assign","Code":"const k = Math.random();\r\ntotal \u002B= arr.map((obj) =\u003E {\r\n return Object.assign({\r\n d: obj.a \u002B obj.b \u002B k,\r\n }, obj);\r\n}).reduce((total, obj) =\u003E {\r\n return total \u002B obj.d / obj.c;\r\n}, 0);","IsDeferred":false}]}