Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Mac OS X 10.11
Desktop
one year ago
Test name Executions per second
for 1201003.0 Ops/sec
for..of 45958.9 Ops/sec
for..in 29168970.0 Ops/sec
forEach 2210921.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • for..of

  • for..in

  • forEach