Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4243.0 Safari/537.36
Chrome 87
Windows
Desktop
4 years ago
Test name Executions per second
Reduce 25.1 Ops/sec
Set Map 28.8 Ops/sec
Set Simple For 29.7 Ops/sec
Set For Of 29.1 Ops/sec
Set For Each 29.8 Ops/sec
Script Preparation code:
Tests:
  • Reduce

  • Set Map

  • Set Simple For

  • Set For Of

  • Set For Each