Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Windows
Desktop
2 years ago
Test name Executions per second
Object Iteration 1708118.1 Ops/sec
Array Iteration 18392420.0 Ops/sec
Map Iteration 13127062.0 Ops/sec
Map Iteration (keys) 15713285.0 Ops/sec
Map Iteration (values) 15340756.0 Ops/sec
Set Iteration 16446561.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration