Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Mac OS X 10.15.7
Desktop
11 months ago
Test name Executions per second
Object Iteration 1317673.6 Ops/sec
Array Iteration 13332523.0 Ops/sec
Map Iteration 8756891.0 Ops/sec
Map Iteration (keys) 10996640.0 Ops/sec
Map Iteration (values) 11766534.0 Ops/sec
Set Iteration 12017629.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration