Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows
Desktop
one year ago
Test name Executions per second
Object Iteration 10517012.0 Ops/sec
Array Iteration 10415114.0 Ops/sec
Map Iteration 2336522.5 Ops/sec
Map Iteration (keys) 3167883.2 Ops/sec
Map Iteration (values) 2848815.0 Ops/sec
Set Iteration 3222248.8 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration