Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Windows
Desktop
4 years ago
Test name Executions per second
for 2096816.1 Ops/sec
for..of 2376743.2 Ops/sec
for+cache 2163604.0 Ops/sec
for+cache+cache 2293998.0 Ops/sec
for+cache+cache+cache 2544659.2 Ops/sec
for..of+cache 2355810.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • for..of

  • for+cache

  • for+cache+cache

  • for+cache+cache+cache

  • for..of+cache

  • foreach + cache+ arrow

  • foreach + cache+ func

  • foreach


;