HTML Preparation code:
AخA
 
1
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.core.js"></script>
Tests:
  • Array.prototype.forEach

     
    var params = [ "hello", true, 7 ];
    var index = 0;
    params.forEach(param => index++);
  • lodash each

     
    var params = [ "hello", true, 7 ];
    var index = 0;
    _.each(params, param => index++);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.forEach
    lodash each

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array.prototype.forEach 103297760.0 Ops/sec
lodash each 9193175.0 Ops/sec