Improve loadtest UI
@@ -123,6 +123,14 @@ async fn main() -> Result<(), anyhow::Error> {
println!("Statistics for transactions:");
for (variant, report) in &report.scenarios.summary {
+ let has_enough_data = report
+ .stats
+ .iter()
+ .next()
+ .filter(|(_k, v)| v.is_some())
+ .is_some();
+
+ if has_enough_data {
println!(
"Sending {} transaction:",
variant.to_string().bright_green()
@@ -131,6 +139,7 @@ async fn main() -> Result<(), anyhow::Error> {
print_stats_summary(category, stats.as_ref());
}
}
+ }
print_counters(
report.scenarios.failed_txs_count,
report.scenarios.total_txs_count,
