Test name | Executions per second |
---|---|
While Loop with cached parent_id | 50024.2 Ops/sec |
While Loop no caching parent_id | 43417.8 Ops/sec |
Using ForEach() instead of While Loop | 42357.4 Ops/sec |
While Loop without cache, using if/else instead of continue | 51031.1 Ops/sec |
While Loop without cache, using spread with assign | 26657.8 Ops/sec |
While Loop without cache, using spread only | 62910.7 Ops/sec |
For Loop version | 51683.5 Ops/sec |
Using ForEach() instead of While Loop, spread only | 62019.8 Ops/sec |
Using ForEach() instead of While Loop, spread only, no push() | 60975.1 Ops/sec |