Test name | Executions per second |
---|---|
While Loop with cached parent_id | 27137.8 Ops/sec |
While Loop no caching parent_id | 27331.3 Ops/sec |
Using ForEach() instead of While Loop | 26642.7 Ops/sec |
While Loop without cache, using if/else instead of continue | 27589.7 Ops/sec |
While Loop without cache, using spread with assign | 26549.7 Ops/sec |
While Loop without cache, using spread only | 272597.5 Ops/sec |
For Loop version | 27344.9 Ops/sec |
Using ForEach() instead of While Loop, spread only | 270215.5 Ops/sec |
Using ForEach() instead of While Loop, spread only, no push() | 252992.6 Ops/sec |