Test name | Executions per second |
---|---|
While Loop with cached parent_id | 38581.7 Ops/sec |
While Loop no caching parent_id | 36989.8 Ops/sec |
Using ForEach() instead of While Loop | 30230.6 Ops/sec |
While Loop without cache, using if/else instead of continue | 35789.4 Ops/sec |
While Loop without cache, using spread with assign | 11590.1 Ops/sec |
While Loop without cache, using spread only | 18583.0 Ops/sec |
For Loop version | 37836.0 Ops/sec |
Using ForEach() instead of While Loop, spread only | 17461.0 Ops/sec |
Using ForEach() instead of While Loop, spread only, no push() | 16804.6 Ops/sec |