Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.62
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Object Iteration 1073719.8 Ops/sec
Array Iteration 10880337.0 Ops/sec
Map Iteration 8473678.0 Ops/sec
Map Iteration (keys) 9786754.0 Ops/sec
Map Iteration (values) 9796397.0 Ops/sec
Set Iteration 9464550.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration