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.1 Ops/sec
for..of 45958.9 Ops/sec
for..in 29168966.0 Ops/sec
forEach 2210920.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • for..of

  • for..in

  • forEach