mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 03:18:00 +02:00
Use a closed interval when eliminating outliers from performance measurements
When choosing the samples that are not outliers we use a half-open interval (outlier_min <= x < outlier_max). This causes all of the samples to be discarded when the interquartile range is 0 because none of them are less than outlier_max. Fix the problem and make the test more consistent by using a closed interval (outliner_min <= x <= outlier_max).
This commit is contained in:
parent
d48f313701
commit
5f386bb15a
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ _cairo_stats_compute (cairo_stats_t *stats,
|
|||
|
||||
i = min_valid;
|
||||
num_valid = 0;
|
||||
while (i + num_valid < num_values && values[i+num_valid] < outlier_max)
|
||||
while (i + num_valid < num_values && values[i+num_valid] <= outlier_max)
|
||||
num_valid++;
|
||||
|
||||
stats->iterations = num_valid;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue