Test name | Executions per second |
---|---|
While Loop with cached parent_id | 38255.9 Ops/sec |
While Loop no caching parent_id | 36702.7 Ops/sec |
Using ForEach() instead of While Loop | 30108.8 Ops/sec |
While Loop without cache, using if/else instead of continue | 37363.7 Ops/sec |
While Loop without cache, using spread with assign | 11650.4 Ops/sec |
While Loop without cache, using spread only | 17715.8 Ops/sec |
For Loop version | 39647.8 Ops/sec |
Using ForEach() instead of While Loop, spread only | 17603.0 Ops/sec |
Using ForEach() instead of While Loop, spread only, no push() | 17670.5 Ops/sec |