Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Linux
Desktop
11 months ago
Test name Executions per second
Object Iteration 10735997.0 Ops/sec
Array Iteration 12358686.0 Ops/sec
Map Iteration 2153260.0 Ops/sec
Map Iteration (keys) 2748661.8 Ops/sec
Map Iteration (values) 2683667.2 Ops/sec
Set Iteration 2802704.5 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration