Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 YaBrowser/19.3.1.828 Yowser/2.5 Safari/537.36
Yandex Browser 19
Windows 7
Desktop
5 years ago
Test name Executions per second
foreach 6888.6 Ops/sec
for 4084.4 Ops/sec
map 7330.3 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for

  • map


;