HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js'></script>
Script Preparation code:
 
var value = [{a: 30310}, {b: 100303}, {c: 3040494}, {d: 6542321}, {e: 13123531}]
Tests:
  • Lodash forEach

     
    _.forEach(value, function(v,i) {console.log(v)})
  • Native foreach

     
    value.forEach(function(v,i) {console.log(v)})
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Lodash forEach
    Native foreach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36
Chrome 101 on Windows
View result in a separate tab
Test name Executions per second
Lodash forEach 26496.7 Ops/sec
Native foreach 29311.4 Ops/sec