瀏覽代碼

bench-tps: rename tx_count arg to tx-count for consistency (#31213)

Andrew Fitzgerald 2 年之前
父節點
當前提交
843ff9e5d2
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      bench-tps/src/cli.rs
  2. 1 1
      multinode-demo/bench-tps.sh

+ 2 - 1
bench-tps/src/cli.rs

@@ -242,7 +242,8 @@ pub fn build_args<'a>(version: &'_ str) -> App<'a, '_> {
         )
         )
         .arg(
         .arg(
             Arg::with_name("tx_count")
             Arg::with_name("tx_count")
-                .long("tx_count")
+                .long("tx-count")
+                .alias("tx_count")
                 .value_name("NUM")
                 .value_name("NUM")
                 .takes_value(true)
                 .takes_value(true)
                 .help("Number of transactions to send per batch")
                 .help("Number of transactions to send per batch")

+ 1 - 1
multinode-demo/bench-tps.sh

@@ -23,7 +23,7 @@ args=("$@")
 default_arg --entrypoint "127.0.0.1:8001"
 default_arg --entrypoint "127.0.0.1:8001"
 default_arg --faucet "127.0.0.1:9900"
 default_arg --faucet "127.0.0.1:9900"
 default_arg --duration 90
 default_arg --duration 90
-default_arg --tx_count 50000
+default_arg --tx-count 50000
 default_arg --thread-batch-sleep-ms 0
 default_arg --thread-batch-sleep-ms 0
 
 
 $solana_bench_tps "${args[@]}"
 $solana_bench_tps "${args[@]}"