Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for #[bench] and benchmarking support #29553
Comments
alexcrichton
added
I-nominated
T-libs
B-unstable
labels
Nov 4, 2015
This comment has been minimized.
This comment has been minimized.
|
Nominating for discussion in 1.6, and cc https://internals.rust-lang.org/t/bench-status/2122/10, a thread about this. I've currently extracted libtest and I would personally like to deprecate |
This comment has been minimized.
This comment has been minimized.
|
I like IMO it would be nice to be able to provide custom providers for |
This comment has been minimized.
This comment has been minimized.
|
Yeah my feeling here is that I wouldn't want to stabilize anything in the compiler itself unless it looks like a generic "custom test framework" infrastructure, but that's unfortunately a big undertaking that may take awhile. As a result my personal preference is to deprecate the support in the meantime for technically-the-same-if-not-quite-as-easy-to-use support on crates.io |
This comment has been minimized.
This comment has been minimized.
|
The libs team decided to punt on this for 1.6 |
alexcrichton
removed
the
I-nominated
label
Nov 5, 2015
This comment has been minimized.
This comment has been minimized.
briansmith
commented
Feb 1, 2016
|
This looks like it might be a good replacement for the current I agree with Alex that deprecation is the best resolution. |
steveklabnik
referenced this issue
Feb 2, 2016
Closed
`Stats.sum` doesn't handle NaNs, infinities and overflow correctly #11059
zackmdavis
added a commit
to zackmdavis/Mezzanine
that referenced
this issue
Feb 7, 2016
This comment has been minimized.
This comment has been minimized.
|
This just came up on IRC and should be a consideration for anything we do here. Allowing for "unbenchmarked" parts of an iteration. The specific case this came up for was benchmarking an in-place sorting algorithm. Since performance is going to be different for sorted vs. unsorted lists, you need to clone the list each iteration which can throw off the results. |
stewart
added a commit
to stewart/cargo
that referenced
this issue
Dec 29, 2016
HadrienG2
referenced this issue
Mar 11, 2017
Open
Switch to standard Rust benchmarks once they are stable #2
steveklabnik
referenced this issue
May 30, 2017
Open
Tracking issue for crates that are compiler dependencies #27812
Mark-Simulacrum
added
the
C-tracking-issue
label
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
I'm sorry, but this is still required in nightly 1.20. If I write:
Rust complains that it can't find |
This comment has been minimized.
This comment has been minimized.
|
@fschutt That is correct, benchmarking with |
This comment has been minimized.
This comment has been minimized.
|
What's the current status of this given the recent discussion here? Is there another ongoing discussion somewhere else? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Latest development seems to be rust-lang/rfcs#2318 |
This comment has been minimized.
This comment has been minimized.
|
Triage: no major movement recently |
alexcrichton commentedNov 4, 2015
This is a tracking issue for the
#[bench]attribute and its stability in the compiler. Currently it is not possible to use this from stable Rust as it requiresextern crate testwhich is itself not stable.