Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Windows
Desktop
2 years ago
Test name Executions per second
Object Iteration 7088394.5 Ops/sec
Array Iteration 10530639.0 Ops/sec
Map Iteration 2441826.5 Ops/sec
Map Iteration (keys) 2903023.0 Ops/sec
Map Iteration (values) 2940489.5 Ops/sec
Set Iteration 3360803.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration