Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
forEach over entries 12671.6 Ops/sec
for of over entires 12677.5 Ops/sec
forEach over values 15936.2 Ops/sec
for of over values 15784.3 Ops/sec
forEach over keys 5061.4 Ops/sec
for of over keys 5075.4 Ops/sec
for in 5085.1 Ops/sec
Script Preparation code:
Tests:
  • forEach over entries

  • for of over entires

  • forEach over values

  • for of over values

  • forEach over keys

  • for of over keys

  • for in


;