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.
2 parents 564b805 + a51c643 commit 55065d7Copy full SHA for 55065d7
dudect/fixture.c
@@ -196,8 +196,20 @@ static bool doit(int mode)
196
bool ret = measure(before_ticks, after_ticks, input_data, mode);
197
differentiate(exec_times, before_ticks, after_ticks);
198
prepare_percentiles(exec_times, percentiles);
199
- update_statistics(exec_times, classes, percentiles);
200
- ret &= report();
+
+ /* This warm-up step discards the first measurement batch by skipping
201
+ * its statistical analysis. A static boolean flag controls this by
202
+ * marking the initial execution, ensuring only the first call within
203
+ * a test run is excluded from the t-test computation.
204
+ */
205
+ static bool first_time = true;
206
+ if (first_time) {
207
+ first_time = false;
208
+ ret = true;
209
+ } else {
210
+ update_statistics(exec_times, classes, percentiles);
211
+ ret &= report();
212
+ }
213
214
free(before_ticks);
215
free(after_ticks);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments