A DNSCrypt-over-TCP benchmark measures the transport like the other transports #468
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!468
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/226-dnscrypt-tcp-benchmark"
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 #226
A benchmark class for DNSCrypt over TCP joins the transport benchmarks, and the DNSCrypt benchmarks share one helper for the resolver identity, the certificate services and the stamp.
What one invocation measures. DNSCrypt over TCP is one transaction per connection: the listener closes after the first answer, so there is no pipelined case as plain TCP has. Two methods, mean per operation:
Query_WithCertificateAlreadyKnown: one new connection, one encrypted query and its reply (comparable to the plain TCP class'sOneQueryPerNewConnection).Query_WithCertificateDiscovery: a connection for the certificate query, with the signature verified, then a second one for the encrypted query (the full exchange the DNSCrypt UDP class measures).Like its siblings it uses the pipeline data set on SQLite, a fake upstream on loopback, and proves in its setup that replies are the expected ones and that 100 warm queries run zero database commands.
Run.
--scale Smallon a busy machine, which only proves the classes run: DNSCrypt TCP 254 µs and 373 µs per query with one client; plain TCP 80 µs per new connection. The DNSCrypt UDP class still runs after the helper was extracted.NoDelayis set on the listener's TCP path. The client side used for upstreams is not, which is filed as #467 together with a comment that gives the wrong reason.Build: 0 warnings. No CHANGELOG entry: a benchmark is not user-visible behaviour. CI builds the benchmark project and does not run it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK