Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Chrome 120
Windows
Desktop
one year ago
Test name Executions per second
Object Iteration 997693.8 Ops/sec
Array Iteration 11564200.0 Ops/sec
Map Iteration 8315311.5 Ops/sec
Map Iteration (keys) 9889780.0 Ops/sec
Map Iteration (values) 10225395.0 Ops/sec
Set Iteration 9823845.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration