{"ScriptPreparationCode":"var int16 = new Int16Array(100);\r\nvar regular = [];\r\n\r\nfor(var i=0;i\u003C100;i\u002B\u002B){\r\n int16[i] = i;\r\n regular.push(i);\r\n}\r\n\r\nvar add_arrow_fn = (a, b) =\u003E a \u002B b\r\nfunction add_plain_fn(a, b) { return a \u002B b }","TestCases":[{"Name":"Int16Array: for..of","Code":"let sum = 0\r\nfor (const value of int16) {\r\n sum = sum \u002B value\r\n}","IsDeferred":false},{"Name":"Plain JS array: for..of","Code":"let sum = 0\r\nfor (const value of regular) {\r\n sum = sum \u002B value\r\n}","IsDeferred":false},{"Name":"Int16Array: for index","Code":"let sum = 0;\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n sum = sum \u002B int16[i];\r\n}","IsDeferred":false},{"Name":"Plain JS array: for index","Code":"let sum = 0;\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n sum = sum \u002B regular[i];\r\n}","IsDeferred":false},{"Name":"Int16Array: Array reduce: Arrow Function","Code":"let sum = int16.reduce(add_arrow_fn, 0)","IsDeferred":false},{"Name":"Plain JS array: Array reduce: Arrow Function","Code":"let sum = int16.reduce(add_arrow_fn, 0)","IsDeferred":false}]}