Skip to content

test: add portable NSD and Unbound SPF readiness benchmarks - #57

Merged
zaccone merged 3 commits into
masterfrom
spf_benchmarks
Sep 16, 2026
Merged

zaccone merged 3 commits into
masterfrom
spf_benchmarks

Conversation

@zaccone

@zaccone zaccone commented Sep 16, 2026

Copy link
Copy Markdown
Owner

The existing benchmark scripts hard-code VM paths and cover only a few passing policies. Add a portable Unbound/NSD suite that generates 34 fixture types across 1,034 sender identities and validates both the SPF library and the Postfix policy daemon under mixed-result load.

Includes reusable DNS config templates, generated zones, hot/cold cache trials, uniform and Zipf concurrency sweeps, a daemon soak, DNS fault injection, overload/recovery and shutdown checks, deployment instructions, and archived VM measurements. Production library and daemon code are unchanged.

Validation:

  • Linux VM: 13,913,356 evaluations across 126 trials with zero mismatches; exact DNS-count and cache gates passed.
  • The 60-second daemon soak completed 2,256,428 checks at 37,605 checks/sec.
  • go test -race ./..., go vet ./..., daemon smoke tests, and harness failure-gate tests passed.
  • Existing lexer/parser fuzz targets each ran for 20 seconds without failures.

These synthetic closed-loop measurements support a controlled rollout, not a universal production capacity claim. Longer soak, offered-rate traffic, remote DNS behavior, and deployment-specific Postfix validation remain necessary. Test configs run isolated loopback services; regenerate them for the destination VM rather than copying archived absolute paths.

@zaccone
zaccone merged commit 3d52946 into master Sep 16, 2026
5 checks passed
@zaccone
zaccone deleted the spf_benchmarks branch September 16, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant