[Wall time -0.31% vs main; paired PGO estimate] Avoid atomic read-modify-write for serial virtual query IDs - #151
Draft
xmakro wants to merge 1 commit into
Draft
Conversation
xmakro
force-pushed
the
perf-review-20260907/37-serial-dep-color
branch
from
September 9, 2026 06:21
395115d to
ddc00c6
Compare
xmakro
force-pushed
the
perf-review-20260907/38-serial-virtual-index
branch
from
September 9, 2026 06:21
fcfae32 to
8e6d0a5
Compare
xmakro
changed the base branch from
perf-review-20260907/37-serial-dep-color
to
main
September 9, 2026 06:22
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.
Use load/store for unique virtual IDs only in serial mode, retaining atomic fetch-add in parallel mode and the dynamic thread-mode sharing guard.
Negative percentages mean less elapsed time or fewer resources. The title is an individual local timing estimate; small changes may be measurement noise.
The two recorded repetitions give aggregate timing estimates of -0.099% and -0.490% for the title comparison. Mixed directions are marked in the title. This repeatability check is not a confidence interval.
Both compilers use the same source base, CI LLVM, fixed standard libraries, ThinLTO and jemalloc. Each has separate nine-workload Rust PGO training. The stock collector measures all 20 Primary benchmarks: 249 Check/Debug/Opt and full/incremental cases, two observations per compiler per case, alternating baseline/candidate order by crate. No other campaign builds run during measurement. Percentages are equal-case geometric means. LLVM retraining and BOLT are omitted.
This branch has one commit directly on main. Its exact measured source passed the full UI and incremental suites plus the additional suites recorded in the build provenance.
Fixed main commit:
da47efd27287edb02eed0b5a178a165c8f258e37. Measured source patch SHA-256:44ed77b7d559437966d151530d1533778474f4265f8e8a8a01ed0c93b524679f.Local raw measurements and per-case CSVs:
independent-pr151-main-v1-comparison.csvin the September 6 investigation directory. Build/test provenance:pgo/independent-pr151-source-timing-v1/provenance.json.