{"ScriptPreparationCode":"window.testStr = \u0027mt-asjhbfdjasasdkbfas\u0027;\r\nwindow.counter = 0;\r\nwindow.testTimes = 1e5;","TestCases":[{"Name":"startsWith","Code":" \twindow.counter = 0;\r\n for (let index = 0; index \u003C testTimes; index\u002B\u002B) {\r\n if (testStr.startsWith(\u0027mt-\u0027)) {\r\n counter\u002B\u002B;\r\n }\r\n }","IsDeferred":false},{"Name":"indexOf","Code":"window.counter = 0;\r\n for (let index = 0; index \u003C testTimes; index\u002B\u002B) {\r\n if (testStr.indexOf(\u0027mt-\u0027) === 0) {\r\n counter\u002B\u002B;\r\n }\r\n }","IsDeferred":false},{"Name":"String Array","Code":"window.counter = 0;\r\n for (let index = 0; index \u003C testTimes; index\u002B\u002B) {\r\n if (testStr[0] === \u0027m\u0027 \u0026\u0026 testStr[1] === \u0027t\u0027 \u0026\u0026 testStr[2] === \u0027-\u0027) {\r\n counter\u002B\u002B;\r\n }\r\n }","IsDeferred":false}]}