HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/lodash/4.16.0/lodash.min.js"></script>
Script Preparation code:
 
var arrayValue = [{a: 30310}, {b: 100303}, {c: 3040494}]
var objectValue = { a: 30310, b: 100303, c: 3040494}
Tests:
  • lodash.each

     
    _.forOwn(objectValue, function(v,i) {})
  • native

     
    for(var k in objectValue) { 
      var v = objectValue[k];
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash.each
    native

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Linux
View result in a separate tab
Test name Executions per second
lodash.each 4767141.5 Ops/sec
native 3317428.8 Ops/sec