HTML Preparation code:
AخA
 
1
<script src='https://cdn.jsdelivr.net/npm/lodash@4.17.19/lodash.min.js'></script>
Script Preparation code:
 
function double(n) {
    return n*2;
}
var data = [...Array(200)].map((v, idx) => idx);
Tests:
  • lodash map

     
    _.map(data, double);
  • es6 map

     
    data.map(double);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash map
    es6 map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85 on Ubuntu
View result in a separate tab
Test name Executions per second
lodash map 449102.1 Ops/sec
es6 map 469428.6 Ops/sec