Prechádzať zdrojové kódy

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

Andrew Fitzgerald 2 rokov pred
rodič
commit
843ff9e5d2
2 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  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::with_name("tx_count")
-                .long("tx_count")
+                .long("tx-count")
+                .alias("tx_count")
                 .value_name("NUM")
                 .takes_value(true)
                 .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 --faucet "127.0.0.1:9900"
 default_arg --duration 90
-default_arg --tx_count 50000
+default_arg --tx-count 50000
 default_arg --thread-batch-sleep-ms 0
 
 $solana_bench_tps "${args[@]}"