{"ScriptPreparationCode":"let repeat_count=5000;\r\nlet pattern = \u0027abcdefgh\u0027;\r\nvar source = pattern.repeat(5);","TestCases":[{"Name":"split \u002B map \u002B instance","Code":"const values = source.split(\u0027\u0027).map(c=\u003Ec.charCodeAt());\r\nconst res = new Uint8Array(values);","IsDeferred":false},{"Name":"for .. in 1","Code":"const values = Array(source.length);\r\nfor (let i in source)\r\n values[i]=source.charCodeAt(i);\r\nconst res = new Uint8Array(values);\r\n ","IsDeferred":false},{"Name":"for .. in 2","Code":"const values = Array();\r\nfor (let i in source)\r\n values.push(source.charCodeAt());\r\nconst res = new Uint8Array(values);\r\n","IsDeferred":false},{"Name":"classical loop","Code":"const values = Array(source.length);\r\nfor (let i =0; i\u003Csource.length; i\u002B\u002B)\r\n values[i]=source.charCodeAt(i);\r\nconst res = new Uint8Array(values);","IsDeferred":false},{"Name":"classical loop 2","Code":"const res = new Uint8Array(source.length);\r\nfor (let i =0; i\u003Csource.length; i\u002B\u002B)\r\n res[i]=source.charCodeAt(i);","IsDeferred":false},{"Name":"for .. in loop 2","Code":"const res = new Uint8Array(source.length);\r\nfor (let i in source)\r\n res[i]=source.charCodeAt(i);","IsDeferred":false},{"Name":"split\u002BforEach","Code":"const res = new Uint8Array(source.length);\r\nsource.split(\u0027\u0027).forEach( (c,i) =\u003E res[i] = source.charCodeAt(i) )","IsDeferred":false},{"Name":"for .. in loop 3","Code":"const res = new Uint8Array(source.length);\r\nfor (let i in source)\r\n res[i]=source.charCodeAt(i); ","IsDeferred":false},{"Name":"for .. of loop 2","Code":"const res = new Uint8Array(source.length);\r\nlet i=0;\r\nfor (let c of source)\r\n res[i\u002B\u002B]=c.charCodeAt(); ","IsDeferred":false},{"Name":"from","Code":"const res = Uint8Array.from(source, c=\u003Ec.charCodeAt());","IsDeferred":false},{"Name":"from \u002B split","Code":"const res = Uint8Array.from(source.split(\u0027\u0027), c=\u003Ec.charCodeAt());","IsDeferred":false},{"Name":"TextEncoder","Code":"const res = new TextEncoder().encode(source)","IsDeferred":false}]}