Switch sr-arithmetic benchmarking to criterion (#3902)

* Change DefaultMaxDepth from 1024 to 32

* Switch sr-arithmetic benchmarking to criterion

* Update core/sr-arithmetic/Cargo.toml

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Update core/sr-arithmetic/benches/bench.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Test on variable limb lengths

* Change license

* Rework division
This commit is contained in:
Ashley
2019-10-29 12:47:27 +00:00
committed by Bastian Köcher
parent 057636fd1f
commit ae42db6049
7 changed files with 87 additions and 86 deletions
+5 -1
View File
@@ -15,9 +15,9 @@ substrate-debug-derive = { path = "../primitives/debug-derive", default-features
[dev-dependencies]
primitive-types = "0.6.0"
rand = "0.7.2"
criterion = "0.3"
[features]
bench = []
default = ["std"]
std = [
"codec/std",
@@ -26,3 +26,7 @@ std = [
"serde",
"substrate-debug-derive/std",
]
[[bench]]
name = "bench"
harness = false