added basic request count logger

This commit is contained in:
2025-10-18 13:10:20 +02:00
parent 07ca1322bd
commit f4496c7fda
2 changed files with 39 additions and 8 deletions

View File

@@ -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");