- 
  Notifications
 You must be signed in to change notification settings 
- Fork 1.7k
Commit a51c643
Introduce Warm-up Phase for Dudect Measurement
Inspired by 'Reparaz et al.'s' 2016 paper, this change adds a
warm-up phase to the function that collects and processes
measurement batches, skipping the first batch to reduce timing
variance in queue operations like insert and remove. Unlike the
author's implementation, which uses dynamic percentile checks,
this approach uses a static boolean to mark the initial run,
suiting the fixed test loop. Experiments in simulation mode with
qtest.c and perf show a minor 1.5% reduction in standard deviation
(from 449ms to 442ms), suggesting a small improvement in execution
stability.
Reference: 'Reparaz et al.', "Dude, is my code constant time?", 2016,
https://eprint.iacr.org/2016/1123.pdf
Change-Id: I71692702401c130cd7cac1d424209308baecb87b1 parent 599de0f commit a51c643
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 196 | 196 |  | |
| 197 | 197 |  | |
| 198 | 198 |  | |
| 199 | - | ||
| 200 | - | ||
| 199 | + | ||
| 200 | + | ||
| 201 | + | ||
| 202 | + | ||
| 203 | + | ||
| 204 | + | ||
| 205 | + | ||
| 206 | + | ||
| 207 | + | ||
| 208 | + | ||
| 209 | + | ||
| 210 | + | ||
| 211 | + | ||
| 212 | + | ||
| 201 | 213 |  | |
| 202 | 214 |  | |
| 203 | 215 |  | |
|  | |||
0 commit comments