HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
 
var array = ['a', 'b', 'c']
Tests:
  • Native map

     
    array.map((value, index) => {   console.log(value) })
  • _.map

     
    _.map(array, (value, index) => { console.log(value) })
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Native map
    _.map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Chrome 91 on Linux
View result in a separate tab
Test name Executions per second
Native map 40916.3 Ops/sec
_.map 45103.6 Ops/sec