mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
ws load test: provide stats on number of active connections
This commit is contained in:
parent
1d8eec3c44
commit
3d2ae26b13
3 changed files with 8 additions and 0 deletions
|
|
@ -146,6 +146,8 @@ fn monitor_statistics(state: LoadTestState, config: &Config) {
|
|||
|
||||
let responses_announce_per_second = responses_announce / interval_f64;
|
||||
|
||||
let connections = statistics.connections.load(Ordering::Relaxed);
|
||||
|
||||
let responses_per_second = responses_announce_per_second
|
||||
+ responses_offer_per_second
|
||||
+ responses_answer_per_second
|
||||
|
|
@ -165,6 +167,7 @@ fn monitor_statistics(state: LoadTestState, config: &Config) {
|
|||
println!(" - Answer responses: {:.2}", responses_answer_per_second);
|
||||
println!(" - Scrape responses: {:.2}", responses_scrape_per_second);
|
||||
println!(" - Error responses: {:.2}", responses_error_per_second);
|
||||
println!("Active connections: {}", connections);
|
||||
|
||||
let time_elapsed = start_time.elapsed();
|
||||
let duration = Duration::from_secs(config.duration as u64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue