Co #11198: Expose benchmark machine command (#1172)

* Expose benchmark machine command

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* cargo update -p sp-io

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* cargo update -p polkadot-client

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2022-04-15 21:39:26 +02:00
committed by GitHub
parent 01c2dc6b5d
commit 5721c68436
3 changed files with 355 additions and 261 deletions
+353 -261
View File
File diff suppressed because it is too large Load Diff
@@ -262,6 +262,7 @@ pub fn run() -> Result<()> {
cmd.run(config, partials.client.clone(), db, storage) cmd.run(config, partials.client.clone(), db, storage)
}), }),
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()), BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config)),
} }
}, },
Some(Subcommand::TryRuntime(cmd)) => { Some(Subcommand::TryRuntime(cmd)) => {
@@ -502,6 +502,7 @@ pub fn run() -> Result<()> {
}) })
}), }),
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()), BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config)),
} }
}, },
Some(Subcommand::TryRuntime(cmd)) => { Some(Subcommand::TryRuntime(cmd)) => {