Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Windows
Desktop
one year ago
Test name Executions per second
Object Iteration 10217023.0 Ops/sec
Array Iteration 9233630.0 Ops/sec
Map Iteration 2062971.1 Ops/sec
Map Iteration (keys) 2585656.5 Ops/sec
Map Iteration (values) 2595853.2 Ops/sec
Set Iteration 2890985.2 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration