Skip to content

benchmarks: compare SPF performance with mail-auth - #56

Merged
zaccone merged 1 commit into
masterfrom
codex/mail-auth-spf-benchmark-results
Sep 16, 2026
Merged

zaccone merged 1 commit into
masterfrom
codex/mail-auth-spf-benchmark-results

Conversation

@zaccone

@zaccone zaccone commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

What changed

Adds reproducible benchmark results comparing this Go SPF implementation with
Stalwart Labs mail-auth.

The report includes:

  • Equal-DNS throughput and p99 latency measurements for simple, include, and
    nested-chain policies.
  • A separate shared-resolver experiment documenting mail-auth and Hickory
    response sharing.
  • Raw JSONL results, pinned dependencies, benchmark drivers, provenance, and
    test logs.

Results

With equal DNS work, this implementation delivered 19–58% higher throughput.
mail-auth showed lower p99 latency at higher concurrency.

With a shared resolver and a repeated-domain workload, mail-auth's response
sharing substantially reduced DNS work and increased throughput. The report
keeps that result separate because it is not an equal-DNS comparison.

How to test

go test ./...
python3 benchmarks/comparison/mailauth/summarize.py

Risks and limitations

This PR changes only benchmark documentation and harness artifacts; it does not
change the production SPF implementation. The benchmarks use deterministic local
DNS fixtures and separate correctness corpora, so they do not establish equal
RFC conformance or production capacity.

@zaccone
zaccone force-pushed the codex/mail-auth-spf-benchmark-results branch from fadff46 to 31efc00 Compare September 16, 2026 09:49
@zaccone zaccone changed the title docs: add mail-auth SPF benchmark results benchmarks: compare SPF performance with mail-auth Sep 16, 2026
@zaccone
zaccone merged commit 1f40cd6 into master Sep 16, 2026
0 of 5 checks passed
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