{"ScriptPreparationCode":"function generateSamples(size) {\r\n const random = (min, max) =\u003E Math.floor(Math.random() * (max -min \u002B 1) \u002B min);\r\n\tconst samples = [];\r\n for(let i = 0; i \u003C size; i\u002B\u002B) {\r\n \t\tconst type = random(1, 200);\r\n \t\tconst index = random(1, 200);\r\n \tsamples.push(\u0022T_\u0022 \u002B type \u002B \u0022[\u0022\u002B index \u002B \u0022]\u0022);\r\n }\r\n return samples;\r\n}\r\nvar samples = generateSamples(20000);","TestCases":[{"Name":"Split","Code":"var values = samples.map(x =\u003E x.split(\u0022[\u0022)[0]);","IsDeferred":false},{"Name":"RegEx","Code":"var values = samples.map(x =\u003E x.match(/T_\\d\u002B/)[0]);","IsDeferred":false}]}