{"ScriptPreparationCode":"var numberSet = new Array(10000).fill(0).map(() =\u003E Math.floor(Math.random() * 20))\r\nvar stringSet = new Array(10000).fill(0).map(() =\u003E Math.random().toString(16).slice(2, 7))\r\n\r\nvar numberMap = new Map();\r\nvar stringMap = new Map();\r\n\r\nvar numberObject = {};\r\nvar stringObject = {};","TestCases":[{"Name":"Numbers Map","Code":"numberSet.forEach((num) =\u003E numberMap.set((numberMap.get(num) || 0) \u002B 1))","IsDeferred":false},{"Name":"Numbers Object","Code":"numberSet.forEach((num) =\u003E numberObject[num] = (numberObject[num] || 0) \u002B 1)","IsDeferred":false},{"Name":"Strings Map","Code":"stringSet.forEach((num) =\u003E stringMap.set((stringMap.get(num) || 0) \u002B 1))","IsDeferred":false},{"Name":"Strings Object","Code":"stringSet.forEach((num) =\u003E stringObject[num] = (stringObject[num] || 0) \u002B 1)","IsDeferred":false},{"Name":"Numbers Object Reduce","Code":"numberSet.reduce((obj, num) =\u003E {\r\n obj[num] = (obj[num] || 0) \u002B 1;\r\n return obj;\r\n}, {})","IsDeferred":false},{"Name":"Strings Object Reduce","Code":"stringSet.reduce((obj, string) =\u003E {\r\n obj[string] = (obj[string] || 0) \u002B 1;\r\n return obj;\r\n}, {})","IsDeferred":false}]}