{"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, v =\u003E v.key)","IsDeferred":false},{"Name":"JS Map (10k entries)","Code":"const map = new Map();\r\nfor (let i = 0; i \u003C data.length; i\u002B\u002B) {\r\n map.set(data[i].key, data[i]);\r\n}","IsDeferred":false},{"Name":"Lodash keyBy (100k entries)","Code":"const keyed = _.keyBy(dataBig, v =\u003E v.key)","IsDeferred":false},{"Name":"JS Map (100k entries)","Code":"const map = new Map();\r\nfor (let i = 0; i \u003C dataBig.length; i\u002B\u002B) {\r\n map.set(dataBig[i].key, dataBig[i]);\r\n}","IsDeferred":false}]}