Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.132 YaBrowser/22.3.1.922 Yowser/2.5 Safari/537.36
Yandex Browser 22
Linux
Desktop
2 years ago
Test name Executions per second
Object Iteration 786302.3 Ops/sec
Array Iteration 9529204.0 Ops/sec
Map Iteration 6270396.5 Ops/sec
Map Iteration (keys) 8521274.0 Ops/sec
Map Iteration (values) 7942081.0 Ops/sec
Set Iteration 7749472.0 Ops/sec
Script Preparation code:
Tests:
  • Object Iteration

  • Array Iteration

  • Map Iteration

  • Map Iteration (keys)

  • Map Iteration (values)

  • Set Iteration