HTML Preparation code:
AخA
 
1
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.core.js"></script>
Script Preparation code:
 
var array = [{id: 'a'}, {id: 'c'}, {id: 'b'}]
Tests:
  • _.map

     
    _.map(array, a => console.log(a.id))
  • native

     
    array.map(a => console.log(a.id))
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    _.map
    native

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
Chrome 100 on Windows
View result in a separate tab
Test name Executions per second
_.map 49777.4 Ops/sec
native 64874.4 Ops/sec