HTML Preparation code:
x
 
1
2
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
 
var arr = [123, 456, 789];
var count = 0;
Tests:
  • Native

     
    arr.forEach(function(v,i) {
      if (v.a != null) {
        count++; 
      }
    })
  • Lodash

     
    _.forEach(arr, function(v,i) {
      if (v.a != null) {
        count++; 
      }
    })
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Native
    Lodash

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36
Chrome 74 on Mac OS X 10.14.4
View result in a separate tab
Test name Executions per second
Native 16821652.0 Ops/sec
Lodash 4216514.5 Ops/sec