Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Chrome 79
Windows
Desktop
4 years ago
Test name Executions per second
ES6 forEach 6241507.0 Ops/sec
Native for loop 1146720.6 Ops/sec
Script Preparation code:
Tests:
  • ES6 forEach

  • Native for loop