Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Windows
Desktop
4 years ago
Test name Executions per second
for 2463.6 Ops/sec
map 2581.6 Ops/sec
for of 6587.6 Ops/sec
forEach 6270.9 Ops/sec
Script Preparation code:
Tests:
  • for

  • map

  • for of

  • forEach