Can we revisit this for Rust 1.5 or so?
I’ve read through the history on this and it seems like it might be a perfect-is-the-enemy-of-the-good situation. The existence of [bench]
in unstable Rust means that people have a preference for [bench]
style tests. But, the need for benchmarking on stable Rust means that we can’t use [bench]
.
I actually think that [bench]
adds very little value compared to just delegating all benchmarking to third-party benchmarking crates and doing things more manually, so I would be fine with deprecating [bench]
and encouraging people to factor out its code (or use other code) to create their own benchmarking crates.
Or, if people feel like [bench]
is really important, then maybe we can accept the current state of things as good enough? IMO the biggest problem with [bench]
is the need for manual use of black_box
, but that doesn’t even seem to be the issue blocking stabilization.
Either way, it would be good to have a decision soon so that people can move forward.