deps: update criterion dependency to v0.4.0 (#5935)

This commit is contained in:
Qinxuan Chen
2023-03-07 23:21:48 +08:00
committed by GitHub
parent 812b4b5229
commit e2dcb19099
4 changed files with 53 additions and 81 deletions

128
Cargo.lock generated
View File

@@ -78,6 +78,12 @@ version = "0.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec8ad6edb4840b78c5c3d88de606b22252d552b55f3a4699fbb10fc070ec3049" checksum = "ec8ad6edb4840b78c5c3d88de606b22252d552b55f3a4699fbb10fc070ec3049"
[[package]]
name = "anes"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]] [[package]]
name = "anyhow" name = "anyhow"
version = "1.0.66" version = "1.0.66"
@@ -214,7 +220,6 @@ dependencies = [
"lazy_static", "lazy_static",
"memchr", "memchr",
"regex-automata", "regex-automata",
"serde",
] ]
[[package]] [[package]]
@@ -377,6 +382,33 @@ dependencies = [
"zeroize", "zeroize",
] ]
[[package]]
name = "ciborium"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0c137568cc60b904a7724001b35ce2630fd00d5d84805fbb608ab89509d788f"
dependencies = [
"ciborium-io",
"ciborium-ll",
"serde",
]
[[package]]
name = "ciborium-io"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "346de753af073cc87b52b2083a506b38ac176a44cfb05497b622e27be899b369"
[[package]]
name = "ciborium-ll"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "213030a2b5a4e0c0892b6652260cf6ccac84827b83a85a534e178e3906c4cf1b"
dependencies = [
"ciborium-io",
"half",
]
[[package]] [[package]]
name = "cipher" name = "cipher"
version = "0.3.0" version = "0.3.0"
@@ -386,17 +418,6 @@ dependencies = [
"generic-array", "generic-array",
] ]
[[package]]
name = "clap"
version = "2.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
dependencies = [
"bitflags",
"textwrap 0.11.0",
"unicode-width",
]
[[package]] [[package]]
name = "clap" name = "clap"
version = "3.2.8" version = "3.2.8"
@@ -411,7 +432,7 @@ dependencies = [
"once_cell", "once_cell",
"strsim", "strsim",
"termcolor", "termcolor",
"textwrap 0.15.0", "textwrap",
] ]
[[package]] [[package]]
@@ -722,7 +743,7 @@ dependencies = [
name = "cranelift-serde" name = "cranelift-serde"
version = "0.95.0" version = "0.95.0"
dependencies = [ dependencies = [
"clap 3.2.8", "clap",
"cranelift-codegen", "cranelift-codegen",
"cranelift-reader", "cranelift-reader",
"serde_json", "serde_json",
@@ -735,7 +756,7 @@ dependencies = [
"anyhow", "anyhow",
"capstone", "capstone",
"cfg-if", "cfg-if",
"clap 3.2.8", "clap",
"cranelift", "cranelift",
"cranelift-codegen", "cranelift-codegen",
"cranelift-entity", "cranelift-entity",
@@ -793,15 +814,16 @@ dependencies = [
[[package]] [[package]]
name = "criterion" name = "criterion"
version = "0.3.6" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b01d6de93b2b6c65e17c634a26653a29d107b3c98c607c765bf38d041531cd8f" checksum = "e7c76e09c1aae2bc52b3d2f29e13c6572553b30c4aa1b8a49fd70de6412654cb"
dependencies = [ dependencies = [
"anes",
"atty", "atty",
"cast", "cast",
"clap 2.34.0", "ciborium",
"clap",
"criterion-plot", "criterion-plot",
"csv",
"itertools", "itertools",
"lazy_static", "lazy_static",
"num-traits", "num-traits",
@@ -810,7 +832,6 @@ dependencies = [
"rayon", "rayon",
"regex", "regex",
"serde", "serde",
"serde_cbor",
"serde_derive", "serde_derive",
"serde_json", "serde_json",
"tinytemplate", "tinytemplate",
@@ -819,9 +840,9 @@ dependencies = [
[[package]] [[package]]
name = "criterion-plot" name = "criterion-plot"
version = "0.4.5" version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2673cc8207403546f45f5fd319a974b1e6983ad1a3ee7e6041650013be041876" checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
dependencies = [ dependencies = [
"cast", "cast",
"itertools", "itertools",
@@ -904,28 +925,6 @@ dependencies = [
"subtle", "subtle",
] ]
[[package]]
name = "csv"
version = "1.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1"
dependencies = [
"bstr",
"csv-core",
"itoa 0.4.8",
"ryu",
"serde",
]
[[package]]
name = "csv-core"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "ctr" name = "ctr"
version = "0.8.0" version = "0.8.0"
@@ -1574,7 +1573,7 @@ dependencies = [
name = "islec" name = "islec"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"clap 3.2.8", "clap",
"cranelift-isle", "cranelift-isle",
"env_logger 0.9.0", "env_logger 0.9.0",
] ]
@@ -1588,12 +1587,6 @@ dependencies = [
"either", "either",
] ]
[[package]]
name = "itoa"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
[[package]] [[package]]
name = "itoa" name = "itoa"
version = "1.0.1" version = "1.0.1"
@@ -2517,7 +2510,7 @@ dependencies = [
"bitflags", "bitflags",
"errno", "errno",
"io-lifetimes", "io-lifetimes",
"itoa 1.0.1", "itoa",
"libc", "libc",
"linux-raw-sys", "linux-raw-sys",
"once_cell", "once_cell",
@@ -2566,16 +2559,6 @@ dependencies = [
"serde_derive", "serde_derive",
] ]
[[package]]
name = "serde_cbor"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5"
dependencies = [
"half",
"serde",
]
[[package]] [[package]]
name = "serde_derive" name = "serde_derive"
version = "1.0.137" version = "1.0.137"
@@ -2593,7 +2576,7 @@ version = "1.0.80"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f972498cf015f7c0746cac89ebe1d6ef10c293b94175a243a2d9442c163d9944" checksum = "f972498cf015f7c0746cac89ebe1d6ef10c293b94175a243a2d9442c163d9944"
dependencies = [ dependencies = [
"itoa 1.0.1", "itoa",
"ryu", "ryu",
"serde", "serde",
] ]
@@ -2850,15 +2833,6 @@ dependencies = [
"wat", "wat",
] ]
[[package]]
name = "textwrap"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
dependencies = [
"unicode-width",
]
[[package]] [[package]]
name = "textwrap" name = "textwrap"
version = "0.15.0" version = "0.15.0"
@@ -3465,7 +3439,7 @@ version = "8.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"cap-std", "cap-std",
"clap 3.2.8", "clap",
"shuffling-allocator", "shuffling-allocator",
"target-lexicon", "target-lexicon",
"wasi-cap-std-sync", "wasi-cap-std-sync",
@@ -3530,7 +3504,7 @@ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
"bstr", "bstr",
"clap 3.2.8", "clap",
"component-macro-test", "component-macro-test",
"component-test-util", "component-test-util",
"criterion", "criterion",
@@ -3575,7 +3549,7 @@ name = "wasmtime-cli-flags"
version = "8.0.0" version = "8.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"clap 3.2.8", "clap",
"file-per-thread-logger", "file-per-thread-logger",
"pretty_env_logger", "pretty_env_logger",
"rayon", "rayon",
@@ -3627,7 +3601,7 @@ version = "8.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"atty", "atty",
"clap 3.2.8", "clap",
"cranelift-entity", "cranelift-entity",
"env_logger 0.9.0", "env_logger 0.9.0",
"gimli", "gimli",
@@ -4058,7 +4032,7 @@ version = "0.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"capstone", "capstone",
"clap 3.2.8", "clap",
"cranelift-codegen", "cranelift-codegen",
"glob", "glob",
"serde", "serde",

View File

@@ -58,7 +58,7 @@ test-programs = { path = "crates/test-programs" }
wasmtime-runtime = { workspace = true } wasmtime-runtime = { workspace = true }
tokio = { version = "1.8.0", features = ["rt", "time", "macros", "rt-multi-thread"] } tokio = { version = "1.8.0", features = ["rt", "time", "macros", "rt-multi-thread"] }
wast = { workspace = true } wast = { workspace = true }
criterion = "0.3.4" criterion = "0.4.0"
num_cpus = "1.13.0" num_cpus = "1.13.0"
memchr = "2.4" memchr = "2.4"
async-trait = { workspace = true } async-trait = { workspace = true }

View File

@@ -35,7 +35,7 @@ sha2 = { version = "0.10.2", optional = true }
# accomodated in `tests`. # accomodated in `tests`.
[dev-dependencies] [dev-dependencies]
criterion = "0.3" criterion = { version = "0.4.0", features = ["html_reports"] }
similar = "2.1.0" similar = "2.1.0"
[build-dependencies] [build-dependencies]

View File

@@ -37,8 +37,6 @@ mod x86 {
/// Using an inner module to feature-gate the benchmarks means that we must /// Using an inner module to feature-gate the benchmarks means that we must
/// manually specify how to run the benchmarks (see `criterion_main!`). /// manually specify how to run the benchmarks (see `criterion_main!`).
pub fn run_benchmarks() { pub fn run_benchmarks() {
criterion::__warn_about_html_reports_feature();
criterion::__warn_about_cargo_bench_support_feature();
benches(); benches();
Criterion::default().configure_from_args().final_summary(); Criterion::default().configure_from_args().final_summary();
} }