-
Notifications
You must be signed in to change notification settings - Fork 319
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
Version 0.4.0 #496
Version 0.4.0 #496
Changes from 13 commits
f013a5d
0ef6c82
6355148
e7c08b3
09efa53
e8bb66d
4b80187
43f9751
c1b3466
6d3161e
f862a1b
791a97f
7b8030b
db880ab
77f1b38
6d4eff5
412591e
a9c42f0
08bdb9a
6929f48
4b37d8a
d4593f4
a00c592
f73aebb
c334339
1a66bb7
5cb91ab
6127032
77e4ae2
758b324
ecfd1d1
2934163
a18d080
f82ce59
935c632
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ license = "Apache-2.0/MIT" | |
exclude = ["book/*"] | ||
|
||
[dependencies] | ||
anes = "0.1" | ||
lemmih marked this conversation as resolved.
Show resolved
Hide resolved
|
||
lazy_static = "1.4" | ||
criterion-plot = { path = "plot", version = "0.4.3" } | ||
itertools = "0.10" | ||
|
@@ -26,21 +27,24 @@ serde_derive = "1.0" | |
serde_cbor = "0.11" | ||
atty = "0.2" | ||
clap = { version = "2.33", default-features = false } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My initial feedback: This branch with [dev-dependencies]
-criterion = "0.3.5"
+criterion = { git = "https://github.com/bheisler/criterion.rs", branch = "version-0.4", commit = "7b8030b1223adacebf81b8e1cb3286a83e7a2470", default-features=false} How practical would it be to move the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here's the cargo-tree of dependencies with
Some comments:
Not sure that
I don't fully understand how important
Serde is a very heavy dependency. Granted, most of my projects use it anyway, so eliminating serde and serde-derive wouldn't have as wide an impact as removing other dependencies. However, I think finding a way to remove
Again, in the pretty common situation where in CI where we're only verifying that the benchmarks compile and run correctly, and where we don't want any persistence anyway, we should be able to eliminate all the functionality that does file I/O and then eliminate this pretty heavy dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be possible to make There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
OK, when I have time, I will try that. Will you be merging this PR (#496) soon? It would be easier for me to make my PRs on top of this one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Probably won't be merged any time soon. You can submit your PR directly against this branch: Checkout There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had intended for command-line parsing and output and the like to start shifting over to |
||
csv = "1.1" | ||
walkdir = "2.3" | ||
tinytemplate = "1.1" | ||
cast = "0.2" | ||
num-traits = { version = "0.2", default-features = false } | ||
num-traits = { version = "0.2", default-features = false, features = ["std"] } | ||
oorandom = "11.1" | ||
rayon = "1.3" | ||
regex = { version = "1.3", default-features = false, features = ["std"] } | ||
futures = { version = "0.3", default_features = false, optional = true } | ||
smol = { version = "1.2", default-features = false, optional = true } | ||
tokio = { version = "1.0", default-features = false, features = ["rt"], optional = true } | ||
async-std = { version = "1.9", optional = true } | ||
|
||
# Optional dependencies | ||
rayon = { version = "1.3", optional = true } | ||
csv = { version = "1.1", optional = true } | ||
futures = { version = "0.3", default_features = false, optional = true } | ||
smol = { version = "1.2", default-features = false, optional = true } | ||
tokio = { version = "1.0", default-features = false, features = ["rt"], optional = true } | ||
async-std = { version = "1.9", optional = true } | ||
|
||
[dependencies.plotters] | ||
version = "^0.3.1" | ||
optional = true | ||
default-features = false | ||
features = ["svg_backend", "area_series", "line_series"] | ||
|
||
|
@@ -55,8 +59,15 @@ futures = { version = "0.3", default_features = false, features = ["executor" | |
maintenance = { status = "passively-maintained" } | ||
|
||
[features] | ||
stable = ["async_futures", "async_smol", "async_tokio", "async_std"] | ||
default = ["cargo_bench_support"] | ||
stable = [ | ||
"csv_output", | ||
"html_reports", | ||
"async_futures", | ||
"async_smol", | ||
"async_tokio", | ||
"async_std", | ||
] | ||
default = ["rayon", "plotters", "cargo_bench_support"] | ||
|
||
# Enable use of the nightly-only test::black_box function to discourage compiler optimizations. | ||
real_blackbox = [] | ||
|
@@ -82,7 +93,7 @@ cargo_bench_support = [] | |
# This feature _currently_ does nothing, but in 0.4.0 it will be | ||
# required in order to have Criterion.rs generate CSV files. This feature is deprecated in favor of | ||
# cargo-criterion's --message-format=json option. | ||
csv_output = [] | ||
csv_output = ["csv"] | ||
|
||
[workspace] | ||
exclude = ["cargo-criterion"] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#![allow(deprecated)] | ||
|
||
use std::mem; | ||
|
||
use cast::From as _0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to set version = "0.4.0" now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would that make it easier for people to test this branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was easier for me to test with it left as-is, because I could use
[patch.crates-io]
to insert it into other dependencies likecriterion-cycles-per-byte
andpprof
.