added basic request count logger
This commit is contained in:
@@ -6,12 +6,12 @@ use tokio::time::sleep;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let target = "http://127.0.0.1:6008/"; // adjust your port
|
||||
let expected_ip = "1.2.3.4";
|
||||
let start_rps = 10_000;
|
||||
let max_rps = 100_000;
|
||||
let step = 1000;
|
||||
let duration_per_step = Duration::from_secs(2);
|
||||
let target = "http://ip.louiscreates.com/";
|
||||
let expected_ip = "95.112.1.65";
|
||||
let start_rps = 10;
|
||||
let max_rps = 300;
|
||||
let step = 10;
|
||||
let duration_per_step = Duration::from_secs(1);
|
||||
|
||||
println!("# Benchmarking {target}");
|
||||
println!("rate(req/s)\tavg_latency(ms)\terrors");
|
||||
|
||||
Reference in New Issue
Block a user