Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) fe-mem-test/1.0.0 Chrome/80.0.3987.163 Electron/8.5.5 Safari/537.36
Chrome 80
Windows
Desktop
one year ago
Test name Executions per second
for 78991.0 Ops/sec
foreach 4861965.5 Ops/sec
for in 3375570.5 Ops/sec
for..of 124553.6 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of