Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Array Iteration 9830241.0 Ops/sec
Map Iteration 5013528.5 Ops/sec
Map Iteration (keys) 9878103.0 Ops/sec
Map Iteration (values) 8937940.0 Ops/sec
Set Iteration 8630441.0 Ops/sec
Script Preparation code:
Tests:
  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration