Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Firefox 59
Windows
Other
6 years ago
Test name Executions per second
Ramda 1357262.6 Ops/sec
Array (native) 4686997.5 Ops/sec
Lodash 3162071.5 Ops/sec
HTML Preparation code:
AخA
 
1
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.min.js"></script>
2
<script src="//cdn.jsdelivr.net/npm/lodash@4.17.5/lodash.min.js"></script>
Script Preparation code:
 
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];
Tests:
  • Ramda

     
    R.map(double, data);
  • Array (native)

     
    data.map(double);
  • Lodash

     
    _.map(data, double);