{"ScriptPreparationCode":"var arr = Array.from({length: 1000000}).map((_,i) =\u003E ({id: i}));\r\nvar findTargets = Array.from({length: 1000}).map((_,i) =\u003E idGen());\r\nfunction idGen() {\r\n return Math.floor(Math.random() * 1000000) % 1000000\r\n}","TestCases":[{"Name":"create map and find may","Code":"const arrMap = new Map(arr.entries());\r\nfindTargets.forEach(target =\u003E arrMap.get(target));","IsDeferred":false},{"Name":"array find may","Code":"\r\nfindTargets.forEach(target =\u003E arr.find((i) =\u003E i.id === target));","IsDeferred":false}]}