{"ScriptPreparationCode":"function randomCharCodes(n) {\r\n const arr = new Uint8Array(n);\r\n for(let i=0;i\u003Cn;i\u002B\u002B) {\r\n arr[i] = ~~(Math.random()*0x100)\r\n }\r\n return arr;\r\n}\r\nconst chars1 = randomCharCodes(1024*1024);\r\nvar chars = chars1;\r\nfunction test1(arr) {\r\n const l = arr.length;\r\n var i = 0;\r\n var s = \u0022\u0022;\r\n for(;i\u003Cl;i\u002B\u002B){\r\n s\u002B=String.fromCharCode(arr[i]);\r\n }\r\n return s;\r\n}\r\nfunction test2(arr) {\r\n return String.fromCharCode.apply(null, arr);\r\n}\r\nfunction test3(arr) {\r\n const l = arr.length;\r\n var i = 0;\r\n var a = [];\r\n for(;i\u003Cl;i\u002B\u002B){\r\n a[i]=String.fromCharCode(arr[i]);\r\n }\r\n return a.join(\u0022\u0022);\r\n}","TestCases":[{"Name":"For-loop","Code":"var t1 = test1(chars);","IsDeferred":false},{"Name":"String.fromCharCode.apply","Code":"var t2 = test2(chars);","IsDeferred":false},{"Name":"join method","Code":"var t3 = test3(chars);","IsDeferred":false}]}