mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Enable verification logic when executing benchmarks (#6929)
* Add `--verify` flag to benchmark execution * make it so `--verify` can be used for getting the actual benchmarks * undo manual testing * oops * use benchmark config struct * verify is default on, docs update * remove clone * improve formatting * fix test * bump impl for ci
This commit is contained in:
@@ -75,6 +75,7 @@ impl BenchmarkCmd {
|
||||
self.highest_range_values.clone(),
|
||||
self.steps.clone(),
|
||||
self.repeat,
|
||||
!self.no_verify,
|
||||
self.extra,
|
||||
).encode(),
|
||||
extensions,
|
||||
|
||||
@@ -72,6 +72,10 @@ pub struct BenchmarkCmd {
|
||||
#[structopt(long)]
|
||||
pub heap_pages: Option<u64>,
|
||||
|
||||
/// Disable verification logic when running benchmarks.
|
||||
#[structopt(long)]
|
||||
pub no_verify: bool,
|
||||
|
||||
/// Display and run extra benchmarks that would otherwise not be needed for weight construction.
|
||||
#[structopt(long)]
|
||||
pub extra: bool,
|
||||
|
||||
Reference in New Issue
Block a user