Test name | Executions per second |
---|---|
Ramda | 3023889.8 Ops/sec |
Array (native) | 2340480.8 Ops/sec |
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.min.js"></script>
function double(n) {
return n*2;
}
var data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30];
R.map(double, data);
data.map(double);