Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Windows
Desktop
one year ago
Test name Executions per second
Object Iteration 1467722.2 Ops/sec
Array Iteration 16391959.0 Ops/sec
Map Iteration 11633804.0 Ops/sec
Map Iteration (keys) 14070730.0 Ops/sec
Map Iteration (values) 13407579.0 Ops/sec
Set Iteration 14105793.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration