{"ScriptPreparationCode":null,"TestCases":[{"Name":"reg.exec","Code":"const arr = _arr;\r\nconst len = arr.length;\r\nlet r = 0;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n const reg = /\\]/g;\r\n const positions = [];\r\n let match;\r\n const basic_path = arr[i];\r\n while ((match = reg.exec(basic_path)) !== null) {\r\n positions.push(match.index);\r\n }\r\n r \u002B= positions.length;\r\n}\r\nwindow.tmp_r1 = r;\r\n","IsDeferred":false},{"Name":"for-loop","Code":"const arr = _arr;\r\nconst len = arr.length;\r\nlet r = 0;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n const basic_path = arr[i];\r\n const positions = getPositions(basic_path);\r\n r \u002B= positions.length;\r\n}\r\nwindow.tmp_r2 = r;\r\n","IsDeferred":false},{"Name":"for-indexOf","Code":"const arr = _arr;\r\nconst len = arr.length;\r\nlet r = 0;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n const basic_path = arr[i];\r\n const positions = getPositionsIndexOf(basic_path);\r\n r \u002B= positions.length;\r\n}\r\nwindow.tmp_r3 = r;\r\n","IsDeferred":false}]}