Files
tls-pq-bench/docs/experiment-plan.md
2026-01-25 15:57:47 +02:00

44 lines
1015 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Experiment plan
## Independent variables
1. Key exchange group:
- X25519 (baseline)
- X25519MLKEM768 (hybrid PQ)
2. Payload size:
- 1 KB, 10 KB, 100 KB, 1 MB
3. Concurrency:
- 1, 10, 100
4. Build profile:
- release
- optional: `RUSTFLAGS="-C target-cpu=native"`
## Dependent variables (metrics)
- handshake latency (ms)
- TTLB (ms)
- optional: CPU cycles / instructions (perf stat)
- optional: memory (valgrind/massif)
- optional: binary size
## Controls
- same server binary for a given mode
- same client binary for a given mode
- fixed CPU governor (performance) if possible
- fixed network conditions per experiment
- fixed rustls/aws-lc-rs versions
- time sync not required (only client-side monotonic clocks)
## Recommended run matrix
Start small to validate correctness:
- (mode: 2) × (payload: 4) × (concurrency: 2) = 16 cells
Then expand to concurrency=100.
## Statistical reporting
- collect N>=200 iterations per cell (after warmup)
- report: p50, p95, p99, mean, stddev