perf(yip-bench): #58 MAC-candidate spike (measure-only) #114
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/yip!114
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/58-mac-candidate-spike"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes the investigation half of #58: measure candidate MACs on the target box before any wire-format change.
What
New isolated criterion microbench (
crates/yip-bench/benches/mac_candidates.rs) timing three keyed MACs over the exact region yip-wire authenticates (header‖symbol, 8-byte tag):siphash24— today'sauth_tagconstruction (baseline)siphash13— SipHash-1-3, drop-in from the same crateblake3_keyed— keyed BLAKE3 (AVX2 SIMD), truncated to 8 bytesResults
Measured on the EPYC target box (the 4b profile box) and a dev box — ratios agree:
Findings
Scope
No wire-format change. The remaining decision (adopt a reduced-round MAC on security-critical code for ~4% CPU that did not move end-to-end throughput on RTT/window-capped boxes) is the parked swap call. Full write-up in
crates/yip-bench/mac-candidates-58.md.