mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
More benchmark machine args (#11428)
* Add ExecutionLimits to sc-sysinfo and return float Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Increase benchmarking duration and add options Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
8fb6919c84
commit
32d6d1b37c
@@ -24,7 +24,16 @@ use std::process::Command;
|
||||
fn benchmark_machine_works() {
|
||||
let status = Command::new(cargo_bin("substrate"))
|
||||
.args(["benchmark", "machine", "--dev"])
|
||||
.args(["--verify-duration", "0.1", "--disk-duration", "0.1"])
|
||||
.args([
|
||||
"--verify-duration",
|
||||
"0.1",
|
||||
"--disk-duration",
|
||||
"0.1",
|
||||
"--memory-duration",
|
||||
"0.1",
|
||||
"--hash-duration",
|
||||
"0.1",
|
||||
])
|
||||
// Make it succeed.
|
||||
.args(["--allow-fail"])
|
||||
.status()
|
||||
@@ -41,7 +50,18 @@ fn benchmark_machine_works() {
|
||||
fn benchmark_machine_fails_with_slow_hardware() {
|
||||
let output = Command::new(cargo_bin("substrate"))
|
||||
.args(["benchmark", "machine", "--dev"])
|
||||
.args(["--verify-duration", "0.1", "--disk-duration", "2", "--tolerance", "0"])
|
||||
.args([
|
||||
"--verify-duration",
|
||||
"1.0",
|
||||
"--disk-duration",
|
||||
"2",
|
||||
"--hash-duration",
|
||||
"1.0",
|
||||
"--memory-duration",
|
||||
"1.0",
|
||||
"--tolerance",
|
||||
"0",
|
||||
])
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user