Repository navigation
bench/run: time the installed build, and cold starts (ALI-2106) - #16
Merged
Merged
Conversation
…e (ALI-2106) --bin PATH times that Alias Calc (the installed /usr/bin/alias-calc, say) instead of building this checkout. --cold drops the page cache before every launch, so each start reads its binary and libraries from disk; it asks for sudo once up front and then drops with sudo -n.
…yped, cold runs say so From review: - A failed sudo -n tee (credentials gone, or not allowed) raised a traceback; it now ends that app's run with a line saying --cold needs sudo. - --bin was resolved after cd-ing to the repo root, a bare name wasn't looked up on PATH, and a directory passed -x. It's now resolved where it was typed (or on PATH) and must be an executable file. - A cold run's table says it's from a cold page cache, and a cold start gets 30 s to map, not 10.
Member
Author
|
Review round 1 (head e4d3d2b) Fixed in the latest commit:
Checked and holds:
|
Member
Author
|
Review round 2 (head 366d4bf; narrow, on that commit) No P1 or P2 findings. Checked and holds:
Fixed in eb61108 (P3):
Declined (P3):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of ALI-2106.
bench/rungets two options, for the measurements still open on the ticket:--bin PATHtimes that Alias Calc instead of building this checkout. For example,bench/run --bin /usr/bin/alias-calctimes the installed package.--colddrops the page cache (echo 3 > /proc/sys/vm/drop_caches, after async) before every launch, so each start reads its binary and libraries from disk. It asks for sudo once, up front. Each drop then runssudo -n, so the runs never stop at a prompt.The README lists both.
Results so far
Installed alias-calc 0.1.2-1 against omacalc (e43fd0a), warm, median of 10, on the desktop:
GNOME Calculator isn't installed any more. Its row stays the 2026-11-26 run, in the project's status update.
Binary size
panic = "abort"is already set, and SCTK already builds with onlyxkbcommon. That leavesopt-level. Each build was timed withbench/run --bin(median of 10) and with the full-frame budget test (cargo test --release -- --ignored budget_full_frame):zbreaks the frame budget.ssaves 149 KB and opens just as fast, but each redraw is about 10% slower. That's a trade-off for Mike, so this PR leaves the profile as it is.Checks
bash -n bench/runpasses, andcalcbench.pycompiles.--binproduced the tables above.--coldisn't run yet: it needs sudo.