Script Preparation code:
Tests:
  • for loop

  • for of with reverse

  • for of with toReversed

  • reduceRight

  • reduceRight with add operation

  • forEach with reverse

  • forEach with toReversed

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for loop
    for of with reverse
    for of with toReversed
    reduceRight
    reduceRight with add operation
    forEach with reverse
    forEach with toReversed

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Chrome 132 on Windows
View result in a separate tab
Test name Executions per second
for loop 89871.5 Ops/sec
for of with reverse 74185.2 Ops/sec
for of with toReversed 67183.8 Ops/sec
reduceRight 111826.6 Ops/sec
reduceRight with add operation 52166.2 Ops/sec
forEach with reverse 49967.2 Ops/sec
forEach with toReversed 48362.2 Ops/sec