Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Linux
Desktop
one year ago
Test name Executions per second
for length 159.4 Ops/sec
forEach 163.5 Ops/sec
for..in 153.0 Ops/sec
for..of 157.9 Ops/sec
Script Preparation code:
Tests:
  • for length

  • forEach

  • for..in

  • for..of