Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Linux
Desktop
one year ago
Test name Executions per second
Object Iteration 11002355.0 Ops/sec
Array Iteration 9650303.0 Ops/sec
Map Iteration 1861209.5 Ops/sec
Map Iteration (keys) 2244911.2 Ops/sec
Map Iteration (values) 2316312.5 Ops/sec
Set Iteration 2268163.2 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration