lodash forEach vs for i loop v2

4 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Test name Executions per second
lodash.forEach 2197987.0 Ops/sec
native 2244024.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.forEach

  • native

Open this result on MeasureThat.net