Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Windows
Desktop
2 years ago
Test name Executions per second
Object Iteration 6219792.0 Ops/sec
Array Iteration 8723061.0 Ops/sec
Map Iteration 2120654.5 Ops/sec
Map Iteration (keys) 2354455.2 Ops/sec
Map Iteration (values) 2524342.0 Ops/sec
Set Iteration 2808701.8 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration