A DNSCrypt-over-TCP benchmark measures the transport like the other transports #226

Closed
opened 2026-10-31 12:42:30 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-4
  • Priority: low (the NoDelay gain of commit a8ed476 is unmeasured for DNSCrypt TCP)
  • Agent: coder
  • Depends on: none
  • Decisions: none

Why

src/dotnet/benchmarks/Ninlil.Benchmarks/Transport/ has UDP, TCP, DoT, DoH, DoQ and DNSCrypt-UDP classes, but no DNSCrypt-TCP class.

What changes

  • New src/dotnet/benchmarks/Ninlil.Benchmarks/Transport/DnsCryptTcpTransportBenchmarks.cs, shaped like DnsCryptUdpTransportBenchmarks.cs and TcpTransportBenchmarks.cs: single query and pipelined queries on one connection, loopback, fake upstream.
  • Its setup deletes its state directory on failure, and cleanup deletes it in finally (the rule from B23-15).

Acceptance

  • The setup proves the replies are correct, as the sibling classes do.
  • dotnet run -c Release --project src/dotnet/benchmarks/Ninlil.Benchmarks -- --filter '*DnsCryptTcp*' --engines Sqlite --scale Small runs. Numbers go in the PR.
  • The Release benchmark build has 0 warnings.

Source

bp-design.md "Items measured, not changed, still open" item 6; bughunt-plan.md:543 item (3).

- **Draft:** BUG-4 - **Priority:** low (the `NoDelay` gain of commit a8ed476 is unmeasured for DNSCrypt TCP) - **Agent:** coder - **Depends on:** none - **Decisions:** none ### Why `src/dotnet/benchmarks/Ninlil.Benchmarks/Transport/` has UDP, TCP, DoT, DoH, DoQ and DNSCrypt-UDP classes, but no DNSCrypt-TCP class. ### What changes - New `src/dotnet/benchmarks/Ninlil.Benchmarks/Transport/DnsCryptTcpTransportBenchmarks.cs`, shaped like `DnsCryptUdpTransportBenchmarks.cs` and `TcpTransportBenchmarks.cs`: single query and pipelined queries on one connection, loopback, fake upstream. - Its setup deletes its state directory on failure, and cleanup deletes it in `finally` (the rule from B23-15). ### Acceptance - [ ] The setup proves the replies are correct, as the sibling classes do. - [ ] `dotnet run -c Release --project src/dotnet/benchmarks/Ninlil.Benchmarks -- --filter '*DnsCryptTcp*' --engines Sqlite --scale Small` runs. Numbers go in the PR. - [ ] The Release benchmark build has 0 warnings. ### Source `bp-design.md` "Items measured, not changed, still open" item 6; `bughunt-plan.md:543` item (3).
claude added this to the (deleted) milestone 2026-10-31 12:42:30 -04:00
claude removed this from the (deleted) milestone 2026-11-06 12:28:39 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#226
No description provided.