Skip to content

Speed up tree traversal and add PR performance benchmarks - #10

Merged
spaansba merged 4 commits into
mainfrom
refactor
Aug 23, 2026
Merged

Speed up tree traversal and add PR performance benchmarks#10
spaansba merged 4 commits into
mainfrom
refactor

Conversation

@spaansba

Copy link
Copy Markdown
Owner

We go from printing while calculating to first calculating then printing. This should speed up the process significantly, also we added a bunch of tests + workflows in this PR

@spaansba spaansba changed the title Refactor Speed up tree traversal and add PR performance benchmarks Aug 23, 2026
@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

PowerTree performance

Fixture: 1,364 directories and 4,092 files. Median of 3 measured runs after one warm-up.

Command Base median PR median Change PR range
ptree fixture 1483.3 ms 837.9 ms -43.5% 616.4–1585.0 ms
ptree fixture -DisplaySize 2742.5 ms 1007.0 ms -63.3% 995.4–1015.9 ms
ptree fixture -DisplaySize -SortBySize -Descending 4430.6 ms 1008.4 ms -77.2% 989.9–1010.3 ms
ptree fixture -PruneEmptyFolders -IncludeExtensions txt 2388.5 ms 403.8 ms -83.1% 403.5–413.5 ms

Negative change is faster. Results are informational because GitHub-hosted runner performance varies.

View workflow run

@spaansba
spaansba marked this pull request as ready for review August 23, 2026 20:13
@spaansba
spaansba merged commit d30add9 into main Aug 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant