Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Windows
Desktop
4 months ago
Test name Executions per second
reduce 2.0 Ops/sec
forEach if 1.6 Ops/sec
for of 1.5 Ops/sec
for of if 1.5 Ops/sec
for 1.6 Ops/sec
forEach 1.6 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • forEach if

  • for of

  • for of if

  • for

  • forEach