HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js"></script>
Script Preparation code:
 
var value = [];
for(var i = 0; i < 1000; i++){
  value[i] = i;
}
Tests:
  • lodash.map

     
    _.map(value, (x) => x*x);
  • native

     
    value.map((x) => x*x);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash.map
    native

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Windows
View result in a separate tab
Test name Executions per second
lodash.map 486161.0 Ops/sec
native 336993.3 Ops/sec