{"ScriptPreparationCode":"var ramdaCount = R.pipe(\r\n R.map(R.o(Math.round, R.multiply(50))),\r\n R.filter(R.modulo(R.__, 2)),\r\n R.countBy(R.identity)\r\n);\r\n\r\nvar nativeCount = vals =\u003E \r\n vals\r\n \t.map(v =\u003E Math.round(v * 50))\r\n \t.filter(v =\u003E v % 2)\r\n \t.reduce((acc, cur) =\u003E { acc[cur] = (acc[cur] | 0) \u002B 1; return acc; }, {});\r\n\r\nvar nativeRes ={}; \r\nvar nativeCount2 = vals =\u003E \r\n\tvals\r\n \t.map(v =\u003E Math.round(v * 50))\r\n \t.filter(v =\u003E v % 2) \r\n .forEach(item =\u003E { nativeRes[item] = (nativeRes[item] | 0) \u002B 1 }); \r\n\r\nvar arr = Array.from({length: 100000}, Math.random);\r\n\r\n","TestCases":[{"Name":"Ramda","Code":"ramdaCount(arr)","IsDeferred":false},{"Name":"Native","Code":"nativeCount(arr)","IsDeferred":false},{"Name":"Native2","Code":"nativeCount2(arr)","IsDeferred":false}]}