We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c42d15 commit 325cb00Copy full SHA for 325cb00
src/pytest_codspeed/instruments/walltime.py
@@ -26,6 +26,8 @@
26
TIMER_RESOLUTION_NS = get_clock_info("perf_counter").resolution * 1e9
27
DEFAULT_MIN_ROUND_TIME_NS = TIMER_RESOLUTION_NS * 1_000_000
28
29
+IQR_OUTLIER_FACTOR = 1.5
30
+
31
32
@dataclass
33
class BenchmarkConfig:
@@ -89,7 +91,10 @@ def from_list(
89
91
)
90
92
iqr_ns = q3_ns - q1_ns
93
iqr_outlier_rounds = sum(
- 1 for t in times_ns if t < q1_ns - 1.5 * iqr_ns or t > q3_ns + 1.5 * iqr_ns
94
+ 1
95
+ for t in times_ns
96
+ if t < q1_ns - IQR_OUTLIER_FACTOR * iqr_ns
97
+ or t > q3_ns + IQR_OUTLIER_FACTOR * iqr_ns
98
99
stdev_outlier_rounds = sum(
100
1
0 commit comments