Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

*: update criterion to v0.4.0 #13142

Merged
merged 2 commits into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 64 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ serde_json = "1.0"
regex = "1.6.0"
platforms = "2.0"
soketto = "0.7.1"
criterion = { version = "0.3.5", features = ["async_tokio"] }
criterion = { version = "0.4.0", features = ["async_tokio"] }
tokio = { version = "1.22.0", features = ["macros", "time", "parking_lot"] }
tokio-util = { version = "0.7.4", features = ["compat"] }
wait-timeout = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion bin/node/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sp-tracing = { version = "6.0.0", path = "../../../primitives/tracing" }
sp-trie = { version = "7.0.0", path = "../../../primitives/trie" }

[dev-dependencies]
criterion = "0.3.0"
criterion = "0.4.0"
futures = "0.3.21"
wat = "1.0"
frame-support = { version = "4.0.0-dev", path = "../../../frame/support" }
Expand Down
2 changes: 1 addition & 1 deletion client/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sp-state-machine = { version = "0.13.0", path = "../../primitives/state-machine"
sp-trie = { version = "7.0.0", path = "../../primitives/trie" }

[dev-dependencies]
criterion = "0.3.3"
criterion = "0.4.0"
kvdb-rocksdb = "0.17.0"
rand = "0.8.5"
tempfile = "3.1.0"
Expand Down
2 changes: 1 addition & 1 deletion client/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sc-tracing = { version = "4.0.0-dev", path = "../tracing" }
tracing-subscriber = "0.2.19"
paste = "1.0"
regex = "1.6.0"
criterion = "0.3"
criterion = "0.4.0"
env_logger = "0.9"
num_cpus = "1.13.1"
tempfile = "3.3.0"
Expand Down
2 changes: 1 addition & 1 deletion client/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sp-runtime = { version = "7.0.0", path = "../../primitives/runtime" }
sp-tracing = { version = "6.0.0", path = "../../primitives/tracing" }

[dev-dependencies]
criterion = "0.3"
criterion = "0.4.0"

[[bench]]
name = "bench"
Expand Down
2 changes: 1 addition & 1 deletion client/transaction-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sp-transaction-pool = { version = "4.0.0-dev", path = "../../primitives/transact
[dev-dependencies]
array-bytes = "4.1"
assert_matches = "1.3.0"
criterion = "0.3"
criterion = "0.4.0"
sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" }
sp-consensus = { version = "0.10.0-dev", path = "../../primitives/consensus/common" }
substrate-test-runtime = { version = "2.0.0", path = "../../test-utils/runtime" }
Expand Down
2 changes: 1 addition & 1 deletion frame/system/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sp-version = { version = "5.0.0", default-features = false, path = "../../primit
sp-weights = { version = "4.0.0", default-features = false, path = "../../primitives/weights" }

[dev-dependencies]
criterion = "0.3.3"
criterion = "0.4.0"
sp-externalities = { version = "0.13.0", path = "../../primitives/externalities" }
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }

Expand Down
2 changes: 1 addition & 1 deletion primitives/api/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ trybuild = "1.0.74"
rustversion = "1.0.6"

[dev-dependencies]
criterion = "0.3.0"
criterion = "0.4.0"
futures = "0.3.21"
log = "0.4.17"
sp-core = { version = "7.0.0", path = "../../core" }
Expand Down
2 changes: 1 addition & 1 deletion primitives/arithmetic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static_assertions = "1.1.0"
sp-std = { version = "5.0.0", default-features = false, path = "../std" }

[dev-dependencies]
criterion = "0.3"
criterion = "0.4.0"
primitive-types = "0.12.0"
sp-core = { version = "7.0.0", features = ["full_crypto"], path = "../core" }
rand = "0.8.5"
Expand Down
4 changes: 2 additions & 2 deletions primitives/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl-serde = { version = "0.4.0", optional = true }
hash-db = { version = "0.15.2", default-features = false }
hash256-std-hasher = { version = "0.15.2", default-features = false }
base58 = { version = "0.2.0", optional = true }
rand = { version = "0.8.5", optional = true, features = ["small_rng"] }
rand = { version = "0.8.5", features = ["small_rng"], optional = true }
substrate-bip39 = { version = "0.4.4", optional = true }
tiny-bip39 = { version = "1.0.0", optional = true }
regex = { version = "1.6.0", optional = true }
Expand Down Expand Up @@ -60,7 +60,7 @@ sp-runtime-interface = { version = "7.0.0", default-features = false, path = "..
[dev-dependencies]
sp-serializer = { version = "4.0.0-dev", path = "../serializer" }
rand = "0.8.5"
criterion = "0.3.3"
criterion = "0.4.0"
serde_json = "1.0"
sp-core-hashing-proc-macro = { version = "5.0.0", path = "./hashing/proc-macro" }

Expand Down
5 changes: 1 addition & 4 deletions primitives/core/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#[macro_use]
extern crate criterion;

use criterion::{black_box, Bencher, BenchmarkId, Criterion};
use criterion::{black_box, criterion_group, criterion_main, Bencher, BenchmarkId, Criterion};
use sp_core::{
crypto::Pair as _,
hashing::{blake2_128, twox_128},
Expand Down
Loading