Skip to content

Commit

Permalink
Merge pull request #41 from nervosnetwork/ckb-bench-markdown-report
Browse files Browse the repository at this point in the history
chore: log markdown table
  • Loading branch information
keroro520 authored Nov 5, 2021
2 parents 6eef58d + edf9e83 commit 6fb1324
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ckb-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) => {
Expand Down

0 comments on commit 6fb1324

Please sign in to comment.