{"ScriptPreparationCode":"let span = document.body.querySelector(\u0022span\u0022);\r\n\r\nclass Float32ArrayExtended extends Float32Array {\r\n \r\n constructor (val) {\r\n super(1);\r\n this[0] = val;\r\n }\r\n\r\n get x () { return this[0]; }\r\n set x (v) { this[0] = v; }\r\n}\r\n\r\nclass Int32ArrayExtended extends Int32Array {\r\n \r\n constructor (val) {\r\n super(1);\r\n this[0] = val;\r\n }\r\n\r\n get x () { return this[0]; }let\r\n set x (v) { this[0] = v; }\r\n}\r\n\r\nconst size = 100000;\r\nconst array = new Array(16).fill(1);\r\nconst arrayEF32 = new Float32ArrayExtended (16);\r\nconst arrayF32 = new Float32Array (16);\r\nconst arrayEI32 = new Int32ArrayExtended (16);\r\nconst arrayI32 = new Int32Array (16);\r\nlet x = 1;\r\n\r\nconst obj = {\r\n get x() {\r\n return array[0];\r\n },\r\n\r\n set x(value) {\r\n array[0] = value;\r\n }\r\n};\r\n\r\nlet sum = 0;","TestCases":[{"Name":"array[0]","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n array[0] = Math.random () * 1000;\r\n sum \u002B= array[0];\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"set / get","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n obj.x = Math.random () * 1000;\r\n sum \u002B= obj.x;\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"float 32","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n arrayF32[0] = Math.random () * 1000;\r\n sum \u002B= arrayF32[0];\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"extended float 32","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n arrayEF32.x = Math.random () * 1000;\r\n sum \u002B= arrayEF32.x;\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"int 32","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n arrayI32[0] = Math.random () * 1000;\r\n sum \u002B= arrayI32[0];\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"extended int 32","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n arrayEI32.x = Math.random () * 1000;\r\n sum \u002B= arrayEI32.x;\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"simple","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n x = Math.random () * 1000;\r\n sum \u002B= x;\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"array[0] 2","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n array[0] = Math.random () * 1000;\r\n sum \u002B= array[0];\r\n}\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"simple 2","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B)\r\n sum \u002B= Math.random () * 1000;\r\n\r\nspan.innerText = sum;","IsDeferred":false},{"Name":"simple 3","Code":"sum = 0;\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n const x = Math.random () * 1000;\r\n sum \u002B= x;\r\n}\r\nspan.innerText = sum;","IsDeferred":false}]}