mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Benchmarks sanity checks (#6119)
* add read-only externalities * sanity checks * cleanup * Update primitives/state-machine/src/read_only.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * fix typo * add error exit code if nothing was run Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -152,6 +152,11 @@ fn main() {
|
||||
}
|
||||
}
|
||||
|
||||
if results.is_empty() {
|
||||
eprintln!("No benchmark was found for query");
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
if opt.json {
|
||||
let json_result: String = serde_json::to_string(&results).expect("Failed to construct json");
|
||||
println!("{}", json_result);
|
||||
|
||||
Reference in New Issue
Block a user