Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 YaBrowser/18.9.0.3467 Yowser/2.5 Safari/537.36
Yandex Browser 18
Windows 8.1
Desktop
6 years ago
Test name Executions per second
forEach 2336.6 Ops/sec
for...of 12839.6 Ops/sec
for 1668.4 Ops/sec
Script Preparation code:
Tests:
  • forEach

  • for...of

  • for


;