-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Implement benchmarks for uN::{gather,scatter}_bits #149610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Collaborator
|
rustbot has assigned @Mark-Simulacrum. Use |
Member
|
@bors r+ |
Collaborator
4 tasks
bors
added a commit
that referenced
this pull request
Dec 4, 2025
Rollup of 10 pull requests Successful merges: - #149521 (Improve `io::Error::downcast`) - #149544 (Only apply `no_mangle_const_items`'s suggestion to plain const items) - #149545 (fix the check for which expressions read never type) - #149570 (rename cortex-ar references to unified aarch32) - #149574 (Batched compiletest Config fixups) - #149579 (Motor OS: fix compile error) - #149595 (Tidying up `tests/ui/issues` tests [2/N]) - #149597 (Revert "implement and test `Iterator::{exactly_one, collect_array}`") - #149608 (Allow PowerPC spe_acc as clobber-only register) - #149610 (Implement benchmarks for uN::{gather,scatter}_bits) r? `@ghost` `@rustbot` modify labels: rollup
rust-timer
added a commit
that referenced
this pull request
Dec 4, 2025
Rollup merge of #149610 - quaternic:gather-scatter-bits-bench, r=Mark-Simulacrum Implement benchmarks for uN::{gather,scatter}_bits Feature gate: #![feature(uint_gather_scatter_bits)] Tracking issue: #149069 Accepted ACP: rust-lang/libs-team#695 (comment) For each method, there are three benchmarks, which differ in that the mask (second) argument is one of: - constant at compile time - runtime value but invariant for the measured loop - different for each call Sample output ```text num::int_bits::u32::constant::gather_bits 555.82ns/iter +/- 22.41 num::int_bits::u32::constant::scatter_bits 545.45ns/iter +/- 124.26 num::int_bits::u32::invariant::gather_bits 8178.86ns/iter +/- 217.37 num::int_bits::u32::invariant::scatter_bits 7135.95ns/iter +/- 214.51 num::int_bits::u32::variable::gather_bits 10539.29ns/iter +/- 198.90 num::int_bits::u32::variable::scatter_bits 9671.26ns/iter +/- 254.88 ``` (and similarly for the other `uN` types)
github-actions bot
pushed a commit
to rust-lang/compiler-builtins
that referenced
this pull request
Dec 11, 2025
Rollup of 10 pull requests Successful merges: - rust-lang/rust#149521 (Improve `io::Error::downcast`) - rust-lang/rust#149544 (Only apply `no_mangle_const_items`'s suggestion to plain const items) - rust-lang/rust#149545 (fix the check for which expressions read never type) - rust-lang/rust#149570 (rename cortex-ar references to unified aarch32) - rust-lang/rust#149574 (Batched compiletest Config fixups) - rust-lang/rust#149579 (Motor OS: fix compile error) - rust-lang/rust#149595 (Tidying up `tests/ui/issues` tests [2/N]) - rust-lang/rust#149597 (Revert "implement and test `Iterator::{exactly_one, collect_array}`") - rust-lang/rust#149608 (Allow PowerPC spe_acc as clobber-only register) - rust-lang/rust#149610 (Implement benchmarks for uN::{gather,scatter}_bits) r? `@ghost` `@rustbot` modify labels: rollup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
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.
Feature gate: #![feature(uint_gather_scatter_bits)]
Tracking issue: #149069
Accepted ACP: rust-lang/libs-team#695 (comment)
For each method, there are three benchmarks, which differ in that the mask (second) argument is one of:
Sample output
(and similarly for the other
uNtypes)