Skip to content

Commit

Permalink
Use constant worker run time
Browse files Browse the repository at this point in the history
  • Loading branch information
s0me0ne-unkn0wn committed Nov 25, 2024
1 parent 49516f9 commit 8dd2b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/sender/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// Assume number of senders equal to TPS if not specified.
let n_sender_tasks = if args.batch > 0 { args.tps / args.batch } else { args.tps };
let n_tx_sender = args.total_senders.unwrap_or(args.tps);
let worker_sleep = (1_000f64 * (n_sender_tasks as f64 / args.tps as f64)) as u64;
let worker_sleep = 1_000u64; //f64 * (n_sender_tasks as f64 / args.tps as f64)) as u64;

log::info!("worker_sleep = {}", worker_sleep);

Expand Down

0 comments on commit 8dd2b82

Please sign in to comment.