{"ScriptPreparationCode":"window.data = [];\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n data.push({\r\n key: \u0060key${i}\u0060\r\n });\r\n}\r\n\r\nwindow.dataBig = [];\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n dataBig.push({\r\n key: \u0060key${i}\u0060\r\n });\r\n}","TestCases":[{"Name":"Lodash keyBy (10k entries)","Code":"const keyed = _.keyBy(data, \u0027key\u0027)","IsDeferred":false},{"Name":"JS Map (10k entries)","Code":"const map = new Map(data.map((r, i) =\u003E [data.key, i]));","IsDeferred":false},{"Name":"Lodash keyBy (100k entries)","Code":"const keyed = _.keyBy(dataBig, \u0027key\u0027)","IsDeferred":false},{"Name":"JS Map (100k entries)","Code":"const map = new Map(dataBig.map((r, i) =\u003E [dataBig.key, i]));","IsDeferred":false}]}