{"ScriptPreparationCode":"var reportsArr = [{\r\n id: \u0060john\u0060,\r\n text: \u0060one\u0060\r\n}, {\r\n id: \u0060jane\u0060,\r\n text: \u0060two\u0060\r\n}, {\r\n id: \u0060bob\u0060,\r\n text: \u0060three\u0060\r\n}]\r\nvar reportsObj = {\r\n [\u0027john\u0027]: {\r\n text: \u0060one\u0060\r\n },\r\n [\u0060jane\u0060]: {\r\n text: \u0060two\u0060\r\n },\r\n [\u0060bob\u0060]: {\r\n text: \u0060three\u0060\r\n }\r\n}\r\n\r\nvar i = 0,\r\n count = 1000,\r\n jane;","TestCases":[{"Name":"Array lookup","Code":"for (i = 0; i \u003C count; i\u002B\u002B) {\r\n janeIndex = reportsArr.findIndex(el =\u003E el.id === \u0027jane\u0027);\r\n}","IsDeferred":false},{"Name":"Obj lookuo","Code":"for (i = 0; i \u003C count; i\u002B\u002B) {\r\n janeIndex = reportsObj[\u0027jane\u0027];\r\n}","IsDeferred":false}]}