Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
one year ago
Test name Executions per second
Object Iteration 1640408.0 Ops/sec
Array Iteration 17628176.0 Ops/sec
Map Iteration 13122707.0 Ops/sec
Map Iteration (keys) 15429738.0 Ops/sec
Map Iteration (values) 15049543.0 Ops/sec
Set Iteration 15591112.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration