Skip to content

test(runner/toolexec): measure the cost of a scheduling point - #583

Merged
hmdsefi merged 1 commit into
mainfrom
plan/2.5-task-12
Nov 1, 2026
Merged

hmdsefi merged 1 commit into
mainfrom
plan/2.5-task-12

Conversation

@hmdsefi

@hmdsefi hmdsefi commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Adds TestPointReleaseCost to runner/toolexec/sched, the measurement XTE §9 asks for. It runs only with SCHED_COST=1 and skips otherwise, so CI does not run it.

The test times one scheduling point and its release, with the driver's synctest.Wait, at stack depths 0 and 40. On an Apple M4 Max with go1.27.3 it logs about 2.7 µs and 11.7 µs, under the spec's targets of 3.0 µs and 16 µs (not gated).

The same run measured the slowdown of the exact backend against plain builds, 100 seeds, median of 3: 1.21× for the root package and shims/netsim, 1.61× for the key-value corpus, 1.01× for the HTTP corpus, and 3.12× for the HTTP corpus with net/http rewritten, all under the 5× limit. The backend's code size is 2,718 lines of the 3,000 budget.

Closes #348

@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@hmdsefi
hmdsefi merged commit fd28b63 into main Nov 1, 2026
18 checks passed
@hmdsefi
hmdsefi deleted the plan/2.5-task-12 branch November 1, 2026 03:38
@hmdsefi hmdsefi mentioned this pull request Nov 1, 2026
14 tasks done
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.5-12] Exact backend: measurements and close-out

1 participant