-
Notifications
You must be signed in to change notification settings - Fork 432
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
Benchmarks not buildable on stable #896
Comments
They never were. Does Rust support benchmarks on stable yet? |
No, but there are (slightly more clunky to use) libraries that work on stable. |
Switching the benchmark lib is an option but I see little benefit. In my opinion sticking with the status quo is not an issue (though I presume @kentfredric disagrees). I'll leave this open for a week or so for further input but if nothing happens it will be closed. |
Part of this bug is acknowledging its not your fault, just a circumstance you've found yourself in due to design decision in rust ( hence the x-ref ). I'm working on linux-vendoring for Rust stuff, and on the list of "nice to have"'s is:
IMO, the net utility of benchmarks is lessened if only developers can run them on bleading edge stuff, because it means stable users can't compare the performance of 2 different versions of a package, and can't compare the performance of the same version of a package on 2 different stable rusts. By all means, if you think the status quo can be improved on, be my guest. But improvements to the rust ecosystem that allow you to ship usable benchmarks without needing painful contortions would be beneficial to all (and hence, this is a nudge that rust-lang/rust#21784 probably should have a different conclusion than Not A Bug) |
Well, you linked the wrong Rust bug; that one complains about ergonomics. See here and the linked internals post. Summary is that work is still on-going in this area; i.e. support for a benchmarking on stable with the standard libraries is planned but not there yet. In the mean-time, I don't have anything much against switching to As for Not A Bug: benchmarks-on-stable are a feature we have never delivered until now. It's not broken if it never existed. From my POV benchmarks are a development tool and not suited for much else (if you wanted to compare to another crate, you should write your own benches doing an apples-to-apples comparison and not assume that you can compare between one project's benches and another). |
Fair enough, glad to see there's more progress headed in that direction then :) ( gosh finding the right bug is hard :( ) I suspect the ideal approach is to wait for that internals work to finish, and then revisit this situation (ie: perform much fewer changes to use the stabilized feature) |
This would be fixed by #1039. |
(Refer to #1039 for further discussion.) |
See also: rust-lang/rust#21784
The text was updated successfully, but these errors were encountered: