Array looping entries

Finding out the performance hit of array entries
one month ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0
Test name Executions per second
for of loop 72421.4 Ops/sec
Simple for loop (reverse) 32071.0 Ops/sec
Script Preparation code:
  • for of loop

  • Simple for loop (reverse)

Open this result on