Skip to content

Commit

Permalink
Fix batch size in stress test (MystenLabs#3343)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadhansood authored Jul 20, 2022
1 parent b58e79b commit e39ef78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/sui-benchmark/src/bin/stress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,11 @@ async fn main() {
// This is the maximum number of increment counter ops in flight
let max_in_flight_ops = opts.target_qps as usize * opts.in_flight_ratio as usize;

let configs = test_and_configure_authority_configs(opts.committee_size as usize);

let mut configs = test_and_configure_authority_configs(opts.committee_size as usize);
configs.validator_configs.iter_mut().for_each(|config| {
let parameters = &mut config.consensus_config.as_mut().unwrap().narwhal_config;
parameters.batch_size = 6400;
});
// initialize the right kind of benchmark
let (payload, addresses, clients) = match opts.transaction_type {
TransactionType::SharedCounter => {
Expand Down

0 comments on commit e39ef78

Please sign in to comment.