lodash forEach vs for i loop modified

3 years ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Test name Executions per second
lodash.forEach 3138388.5 Ops/sec
native 949481.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.forEach

  • native

Open this result on MeasureThat.net