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 26.6 Ops/sec
Set Map 29.8 Ops/sec
Set Simple For 30.8 Ops/sec
Set For Of 31.0 Ops/sec
Set For Each 31.3 Ops/sec
Script Preparation code:
Tests:
  • Reduce

  • Set Map

  • Set Simple For

  • Set For Of

  • Set For Each