Type Alias goose::metrics::ScenarioMetrics

source ·
pub type ScenarioMetrics = Vec<ScenarioMetricAggregate>;
Expand description

All scenarios executed during a load test.

Goose optionally tracks metrics about scenarios executed during a load test. The metrics can be disabled with either the --no-scenario-metrics or the --no-metrics run-time option, or with either GooseDefault::NoScenarioMetrics or GooseDefault::NoMetrics.

Aggregated scenarios (ScenarioMetricAggregate) are stored in a Vector keyed to the order the scenario is created in the load test.

Example

When viewed with std::fmt::Display, TransactionMetrics are displayed in a table:

 === PER SCENARIO METRICS ===
------------------------------------------------------------------------------
Name                     |  # users |  # times run | scenarios/s | iterations
------------------------------------------------------------------------------
1: AnonBrowsingUser      |        9 |          224 |        6.40 |      24.89
2: AuthBrowsingUser      |        3 |           51 |        1.46 |      17.00
-------------------------+----------+--------------+-------------+------------
Aggregated               |       12 |          275 |        7.86 |      22.92
------------------------------------------------------------------------------
Name                     |    Avg (ms) |        Min |         Max |     Median
------------------------------------------------------------------------------
1: AnonBrowsingUser    |        1293 |      1,067 |       1,672 |      1,067
2: AuthBrowsingUser    |        1895 |      1,505 |       2,235 |      1,505
-------------------------+-------------+------------+-------------+-----------
Aggregated               |        1405 |      1,067 |       2,235 |      1,067