Repository navigation
feat(bench): pool scaling bench is a plan, ADR-0072 on parallelism - #336
Merged
Merged
Conversation
by-cores.sh is replaced by flang/concurrency/bench/by-cores.fscript: the same request per worker count, minimum wall time of three runs, runs per second and speed-up against the first count. The stand is fed through sh only because the binary host has no order with stdin. Running it on the stand "pachka" (1024 processes, K = 64) shows that the printed C pool does not scale today: 2322 ms on one thread, 4446 ms on eight. ThreadSanitizer names the cause: fl_tick and fl_enter write fl_now and fl_watch_frames on every call from every thread. With those two writes removed in a scratch copy of the runtime the same stand runs 2314 ms on one thread and 69 ms on 64, and check-mode output stays byte-identical. The runtime is a seed print input, so the fix is recorded in ADR-0072 as step 1 for the next batch print, together with the model for parallel map over total functions, fold only over a kernel-proved monoid, targets, tests and print cost. docs/scheduler-benchmark.md says the pool does not scale as printed today and points the recipe at the plan; inventory and prose numbers follow the removed shell file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PNHrA3rG7FTWhB11E7pjDQ
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.
Verified on the tree of dev plus this branch (2ddf8c4): the checker test set passes, the provability verdict is green with all four checks, the proved-share ledger and the rule tables agree with the tree, pre-push is green, commit messages follow the convention.
🤖 Generated with Claude Code