update criterion to v0.4.0 (#13142)

This commit is contained in:
Qinxuan Chen
2023-01-29 03:43:32 +08:00
committed by GitHub
parent 1aaea41155
commit b77a1a67eb
13 changed files with 78 additions and 82 deletions
+1 -1
View File
@@ -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" }
+1 -1
View File
@@ -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"
+2 -2
View File
@@ -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 }
@@ -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" }
+1 -4
View File
@@ -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},
+2 -2
View File
@@ -37,8 +37,8 @@ schnellru = { version = "0.2.1", optional = true }
[dev-dependencies]
array-bytes = "4.1"
criterion = "0.3.3"
trie-bench = "0.33.0"
criterion = "0.4.0"
trie-bench = "0.34.0"
trie-standardmap = "0.15.2"
sp-runtime = { version = "7.0.0", path = "../runtime" }