Skip to content

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented Sep 1, 2025

Closes #59.

Measured using RUSTFLAGS=-Ctarget-cpu=native cargo bench on x86_64 AMD Ryzen Threadripper 2990WX.

performance

`RUSTFLAGS=-Ctarget-cpu=native cargo bench` on x86_64 AMD Ryzen Threadripper 2990WX.
@dtolnay dtolnay mentioned this pull request Sep 1, 2025
@dtolnay dtolnay merged commit 5cd6218 into master Sep 1, 2025
17 checks passed
@dtolnay dtolnay deleted the bench branch September 1, 2025 03:23
(1, 22)
(2, 29)
(3, 27)
(4, 34)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking more into this significant regression in libstd times, it seems to be relatively recent but spread over multiple Rust releases. Here are the recent u64::MAX timings (the others follow a similar ratio):

  • Rust 1.50–1.82: 23ns
  • Rust 1.83–1.86: 26ns
  • Rust 1.87–1.90-beta: 28ns
  • Rust 1.91-nightly: 34ns

The regression in 1.91 bisects to nightly-2025-08-29.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on RUSTFLAGS=-Ctarget-cpu=native cargo bisect-rustc --start 2025-08-28 --end 2025-08-29 --prompt -- bench bench_std_fmt::bench_u64_max it's rust-lang/rust#145877.

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.

Update benchmark

2 participants