Type Definition goose::metrics::GooseTaskMetrics [−][src]
pub type GooseTaskMetrics = Vec<Vec<GooseTaskMetricAggregate>>;
Expand description
All tasks executed during a load test.
Goose optionally tracks metrics about tasks executed during a load test. The
metrics can be disabled with either the --no-task-metrics
or the --no-metrics
run-time option, or with either
GooseDefault::NoTaskMetrics
or
GooseDefault::NoMetrics
.
Aggregated tasks (GooseTaskMetricAggregate
) are stored in a Vector of Vectors
keyed to the order the task is created in the load test.
Example
When viewed with std::fmt::Display
, GooseTaskMetrics
are displayed in
a table:
=== PER TASK METRICS ===
------------------------------------------------------------------------------
Name | # times run | # fails | task/s | fail/s
------------------------------------------------------------------------------
1: AnonBrowsingUser |
1: (Anon) front page | 440 | 0 (0%) | 44.00 | 0.00
2: (Anon) node page | 296 | 0 (0%) | 29.60 | 0.00
3: (Anon) user page | 90 | 0 (0%) | 9.00 | 0.00
2: AuthBrowsingUser |
1: (Auth) login | 0 | 0 (0%) | 0.00 | 0.00
2: (Auth) front page | 109 | 0 (0%) | 10.90 | 0.00
3: (Auth) node page | 74 | 0 (0%) | 7.40 | 0.00
4: (Auth) user page | 19 | 0 (0%) | 1.90 | 0.00
5: (Auth) comment form | 20 | 0 (0%) | 2.00 | 0.00
-------------------------+---------------+----------------+----------+--------
Aggregated | 1,048 | 0 (0%) | 104.80 | 0.00
------------------------------------------------------------------------------
Name | Avg (ms) | Min | Max | Median
------------------------------------------------------------------------------
1: AnonBrowsingUser |
1: (Anon) front page | 94.41 | 59 | 294 | 88
2: (Anon) node page | 53.29 | 3 | 96 | 53
3: (Anon) user page | 33.02 | 17 | 221 | 30
2: AuthBrowsingUser |
1: (Auth) login | 0.00 | 0 | 0 | 0
2: (Auth) front page | 119.45 | 84 | 307 | 110
3: (Auth) node page | 52.16 | 37 | 81 | 51
4: (Auth) user page | 31.21 | 25 | 40 | 31
5: (Auth) comment form | 135.10 | 107 | 175 | 130
-------------------------+-------------+------------+-------------+-----------
Aggregated | 76.78 | 3 | 307 | 74