Skip to content

runtest: Improve parallel tests time by ordering in descending runtime - #4783

Draft
hdiethelm wants to merge 2 commits into
LinuxCNC:masterfrom
hdiethelm:runtest_parallel_sequence
Draft

hdiethelm wants to merge 2 commits into
LinuxCNC:masterfrom
hdiethelm:runtest_parallel_sequence

Conversation

@hdiethelm

Copy link
Copy Markdown
Contributor

Advantage:
Test duration goes down from 37s to 30s with -j32

Disadvantage:
354 runtime files that need to be in git

After #4782 merged:
Without this PR: 32s
With this PR: 28s

Not that much benefit any more on my PC, so in my opinion the added complexity is probably not worth the speedup.

I create a PR anyway due to the code is already there and it might be different on other PC's.

@BsAtHome

BsAtHome commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

FWIW, no need to add 356 files. I think you could do that in one file, like lcnc.git/tests/runtime. Just list runtime and subdir on a line. When an entry is not found, then it is zero (and you can complain so that the file will get updated by someone).

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.

2 participants