Test name | Executions per second |
---|---|
While Loop with cached parent_id | 47353.9 Ops/sec |
While Loop no caching parent_id | 43586.6 Ops/sec |
Using ForEach() instead of While Loop | 41848.3 Ops/sec |
While Loop without cache, using if/else instead of continue | 50547.1 Ops/sec |
While Loop without cache, using spread with assign | 26750.3 Ops/sec |
While Loop without cache, using spread only | 62886.8 Ops/sec |
For Loop version | 52101.7 Ops/sec |
Using ForEach() instead of While Loop, spread only | 60124.4 Ops/sec |
Using ForEach() instead of While Loop, spread only, no push() | 60508.8 Ops/sec |