From edf9e8385093583fa68f6ac64b39a52553679304 Mon Sep 17 00:00:00 2001 From: keroro Date: Fri, 5 Nov 2021 12:03:38 +0800 Subject: [PATCH] chore: log markdown table --- ckb-bench/src/main.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ckb-bench/src/main.rs b/ckb-bench/src/main.rs index d6c64a6..6437185 100644 --- a/ckb-bench/src/main.rs +++ b/ckb-bench/src/main.rs @@ -371,6 +371,22 @@ pub fn entrypoint(clap_arg_match: ArgMatches<'static>) { t_stat, Some(t_tx_interval), ); + ckb_testkit::info!( + "markdown report: | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} |", + metrics.ckb_version, + metrics.transactions_per_second, + metrics.n_inout, + metrics.n_nodes, + metrics.delay_time_ms.expect("bench specify delay_time_ms"), + metrics.average_block_time_ms, + metrics.average_block_transactions, + metrics.average_block_transactions_size, + metrics.from_block_number, + metrics.to_block_number, + metrics.total_transactions, + metrics.total_transactions_size, + metrics.transactions_size_per_second, + ); ckb_testkit::info!("metrics: {}", serde_json::json!(metrics)); } ("stat", Some(arguments)) => {