{"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();\r\n","TestCases":[{"Name":"Buffer","Code":"Buffer.byteLength(randomStrings, \u0027utf8\u0027);","IsDeferred":false},{"Name":"TextEncoder","Code":"encoder.encode(randomStrings).length;","IsDeferred":false}]}