mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
udp load test: add config.summarize_last: only summarize last N seconds
This commit is contained in:
parent
e18b50227c
commit
7863782413
2 changed files with 29 additions and 3 deletions
|
|
@ -21,6 +21,10 @@ pub struct Config {
|
|||
pub workers: u8,
|
||||
/// Run duration (quit and generate report after this many seconds)
|
||||
pub duration: usize,
|
||||
/// Only report summary for the last N seconds of run
|
||||
///
|
||||
/// 0 = include whole run
|
||||
pub summarize_last: usize,
|
||||
pub network: NetworkConfig,
|
||||
pub requests: RequestConfig,
|
||||
#[cfg(feature = "cpu-pinning")]
|
||||
|
|
@ -34,6 +38,7 @@ impl Default for Config {
|
|||
log_level: LogLevel::Error,
|
||||
workers: 1,
|
||||
duration: 0,
|
||||
summarize_last: 0,
|
||||
network: NetworkConfig::default(),
|
||||
requests: RequestConfig::default(),
|
||||
#[cfg(feature = "cpu-pinning")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue