{"ScriptPreparationCode":"function randomStrings(chars, length, stringLength) {\r\n\tconst randomChar = () =\u003E chars[Math.floor(Math.random() * chars.length)];\r\n\tconst randomString = () =\u003E Array.from({length: stringLength}, randomChar).join(\u0022\u0022);\r\n\treturn Array.from({length}, randomString);\r\n}\r\n\r\nvar asciiStrings = randomStrings([\u0022a\u0022, \u0022b\u0022, \u0022c\u0022], 50000, 9);\r\nvar unicodeStrings = randomStrings([\u0022\uAC04\u0022, \u0022\uC7C1\u0022, \u0022\uB73B\u0022], 50000, 9);","TestCases":[{"Name":"Intl.Collator.compare (ASCII-only strings)","Code":"const collator = new Intl.Collator();\r\nasciiStrings.sort(collator.compare);","IsDeferred":false},{"Name":"String.prototype.localeCompare (ASCII-only strings)","Code":"asciiStrings.sort((a, b) =\u003E a.localeCompare(b));","IsDeferred":false},{"Name":"Intl.Collator.compare","Code":"const collator = new Intl.Collator();\r\nunicodeStrings.sort(collator.compare);","IsDeferred":false},{"Name":"String.prototype.localeCompare","Code":"unicodeStrings.sort((a, b) =\u003E a.localeCompare(b));","IsDeferred":false}]}