{"ScriptPreparationCode":"var list = []\r\nvar map = new Map();\r\nvar SIZE = 1000;\r\n\r\nfor (let i = 0; i \u003C SIZE; i\u002B\u002B) {\r\n const item = { id: \u0022ID-\u0022 \u002B i, value: i};\r\n list.push(item)\r\n map.set(item.id, item)\r\n}","TestCases":[{"Name":"Array.find performance","Code":"for (var i = 0; i \u003C SIZE; i\u002B\u002B) {\r\n const result = list.find((item) =\u003E item.id === \u0022ID-\u0022 \u002B i);\r\n}\r\n","IsDeferred":false},{"Name":"Map.get performance","Code":"for (let i = 0; i \u003C SIZE; i\u002B\u002B) {\r\n const result = map.get(\u0022ID-\u0022 \u002B i);\r\n}\r\n","IsDeferred":false}]}