Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Whale/3.25.232.19 Safari/537.36
Chrome 122
Mac OS X 10.15.7
Desktop
8 months ago
Test name Executions per second
Object Iteration 1922249.5 Ops/sec
Array Iteration 24938606.0 Ops/sec
Map Iteration 16505491.0 Ops/sec
Map Iteration (keys) 18503214.0 Ops/sec
Map Iteration (values) 18752246.0 Ops/sec
Set Iteration 18929272.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration