Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Mac OS X 10.15.7
Desktop
5 months ago
Test name Executions per second
Object Iteration 3228475.5 Ops/sec
Array Iteration 34546248.0 Ops/sec
Map Iteration 22484024.0 Ops/sec
Map Iteration (keys) 26754884.0 Ops/sec
Map Iteration (values) 26626608.0 Ops/sec
Set Iteration 26789468.0 Ops/sec
Map Iteration (entries) 22550254.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration

  • Map Iteration (entries)