{"ScriptPreparationCode":"iterations = 1000;\r\nfunction randomStringGen(n) {\r\n let strings = [];\r\n for (let i = 0; i \u003C n; i\u002B\u002B) {\r\n let s = Math.random().toString(36).substring(2, 15) \u002B Math.random().toString(36).substring(2, 15);\r\n strings[i] = s;\r\n }\r\n return strings;\r\n}\r\nvar randomStrings = randomStringGen(iterations);\r\nvar encoder = new TextEncoder(); ","TestCases":[{"Name":"TextEncoder","Code":"var j = 0;\r\nfor (let i = 0; i \u003C iterations; i\u002B\u002B) {\r\n var str = randomStrings[i % iterations];\r\n encoder.encode(str).length\r\n}","IsDeferred":false},{"Name":"Blob","Code":"var j = 0;\r\nfor (let i = 0; i \u003C iterations; i\u002B\u002B) {\r\n var str = randomStrings[i % iterations];\r\n new Blob([str]).size\r\n}","IsDeferred":false}]}