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 |
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 |