{"ScriptPreparationCode":"var arr = Array.from({length: 1000000}).map((_,i) =\u003E ({id: i}));\r\nvar arrMap = new Map(arr.entries());\r\nfunction idGen() {\r\n return Math.floor(Math.random() * 1000000) % 1000000\r\n}","TestCases":[{"Name":"array to map and find many","Code":"const arrToMap = new Map(arr.entries());\r\nconst id = idGen()\r\narrToMap.get(id)","IsDeferred":false},{"Name":"array find","Code":"const id = idGen()\r\narr.find((item) =\u003E item.id ==id)","IsDeferred":false},{"Name":"map find","Code":"const id = idGen()\r\narrMap.get(id)","IsDeferred":false}]}