{"ScriptPreparationCode":"window.bigMap = {};\r\nwindow.bigArray = Array.from({length: 10}).map((_, index) =\u003E {\r\n const id = \u0022person-id-\u0022 \u002B index;\r\n const person = { id: id, name: \u0060John Doe ${id}\u0060, age: 18 \u002B Math.floor(Math.random() * 70) };\r\n bigMap[id] = person;\r\n return person\r\n})\r\n\r\nwindow.generateId = function generateId() {\r\n return \u0022person-id-\u0022 \u002B Math.floor(Math.random() * 10);\r\n}\r\n\r\nwindow.getPersonFromMap = function getPersonFromMap() {\r\n const id = generateId();\r\n return window.bigMap[id];\r\n}\r\n\r\n\r\nwindow.getPersonFromArray = function getPersonFromArray() {\r\n const id = generateId();\r\n return window.bigArray.find(function findById(p){ return p.id === id; });\r\n}\r\n\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n getPersonFromMap()\r\n}\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n getPersonFromArray()\r\n}\r\n\r\n \r\n\r\n","TestCases":[{"Name":"Find person in map","Code":"getPersonFromMap()","IsDeferred":false},{"Name":"Find person in array","Code":"getPersonFromArray()","IsDeferred":false}]}