{"ScriptPreparationCode":"var data = []\r\n\r\nfor (let i = 0; i \u003C 5000; \u002B\u002Bi) data.push({ username: \u0027toto\u0027, code: i })\r\ndata.push({ username: \u0027titi\u0027, code: \u0027titi\u0027 })\r\nfor (let i = 0; i \u003C 2500; \u002B\u002Bi) data.push({ username: \u0027toto\u0027, code: 5000\u002Bi })","TestCases":[{"Name":"find","Code":"data.find(e =\u003E e.code === \u0027titi\u0027)","IsDeferred":false},{"Name":"map each time","Code":"const dataIndexedByCode = data.reduce((acc, item) =\u003E {\r\n acc.set(item.code, item)\r\n return acc\r\n}, new Map())\r\ndataIndexedByCode.get(\u0027titi\u0027)","IsDeferred":false}]}