Skip to content

Commit 498ba0e

Browse files
committed
Fix timing harness: even trial count for the paired runner
TRIALS=3 tripped RunError::OddSampleCapacity (the paired runner splits the sample capacity into A/B pairs, so it must be even) — the suite panicked before emitting EM_SUMMARY and the campaign timed out. Use 4.
1 parent 1234685 commit 498ba0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

footprint/cortex-m/examples/krabitls_timing.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ use krabi_caliper::suite::{PairedSuite, PairedSuiteConfig, PairedSuiteFields};
1919
use stm32f4xx_hal::pac;
2020
use stm32f4xx_hal::prelude::*;
2121

22-
const TRIALS: usize = 3;
22+
// Must be even — the paired runner splits it into A/B pairs (odd → OddSampleCapacity).
23+
const TRIALS: usize = 4;
2324
const HCLK_HZ: u64 = 168_000_000;
2425
// Timing harness, not a CT verdict: open the spread gate so ordinary
2526
// trial-to-trial jitter (µs on a multi-hundred-ms op) never fails the fixture.

0 commit comments

Comments
 (0)