Audit competitor CI for performance gates, lift the comparative-claims embargo - #144
Merged
Conversation
…s embargo (#124, #107) #124: audited ten comparable Python packet libraries (dpkt, scapy, pypacker, construct, pcapkit, dnspython, pyshark, nfstream, stackforge, PyTCP-net_proto) for an actual CI-enforced performance regression gate, not just a printed benchmark number. None gate; two ship real benchmark code that CI never invokes (construct disables it explicitly, stackforge's Criterion benches are unwired). The comparative claim in CLAIMS.md 1.7 is now stated with that evidence, per file:line or workflow citations dated 2026-09-04. That was the last piece #107 was waiting on. Every section that carried a COMPARATIVE — HELD banner is re-measured against the current tree (post Tiers 2-4, not the Tier 1 tree the numbers were last taken from) and published. One number moved against this project rather than for it: decode throughput vs. dpkt reversed from 1.16x faster (Tier 1) to roughly 11% slower, as the registry dispatch, chain walker and structured-error surface added since cost more than Tier 1 banked. Reported as measured, not smoothed over — that reversal is exactly the volatility the embargo existed to avoid publishing mid-flight. README.md gains a "Why NETProtocols" section drawing the newly-cleared claims into the project's front door, in the tone CLAIMS.md 4.2 sets for writing about competitors. Two new reproduction scripts back claims that previously had none: scripts/benchmark_encode.py and scripts/benchmark_import.py. One PR covers both issues: #124's table and the embargo lift touch the same CLAIMS.md sections in an interleaved way that doesn't split cleanly, and the embargo lift cannot honestly start before #124's evidence lands, per #107's own ordering. Closes #124. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0143tMFpiopxYLf6A2EeDyo9
This was referenced Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the last two pieces of the post-1.3.0 roadmap (#107):
stackforge,PyTCP-net_proto) for whether they actually gate CI builds on a performance regression — not just run a benchmark and print a number. None of the ten do. Two ship real benchmark code that CI never invokes (construct disables it with--benchmark-disable;stackforge's Criterion benches are never called from its workflow). Every finding is cited to afile:lineor workflow, dated 2026-09-04.docs/CLAIMS.md1.7's comparative claim — "no other Python packet library in this comparison set gates performance in CI" — is now stated with that evidence.docs/CLAIMS.mdwas missing before itsCOMPARATIVE — HELDsections could publish. All eleven are re-measured against the current tree (post Tiers 2-4, not the Tier 1 tree the numbers on file were last taken from) and published.One PR covers both: #124's table and the embargo lift touch the same
CLAIMS.mdsections in an interleaved way that doesn't split cleanly, and the embargo lift can't honestly start before #124's evidence lands (#107's own ordering).One finding moved against this project, and is reported as such rather than smoothed over: decode throughput vs. dpkt reversed from 1.16× faster (measured after Tier 1) to roughly 11% slower (measured now). Three tiers of added surface since — the registry-backed dispatch table (#87), the shipped chain walker (#88), structured per-raise-site error context (#91) chief among them — cost more than Tier 1's dispatch win banked. Still comfortably inside the 15% band claim 1.2 names, just no longer ahead. This reversal is exactly the kind of volatility the embargo existed to avoid publishing mid-flight — Rule 5 in
CLAIMS.mdis updated to say so.Other re-measured numbers moved too, generally down from their Tier-1-era highs as the library grew: 5.6× faster than scapy on decode (was 6.2×), 4.5× faster than dpkt on encoding (was 5.3×), 8.5× faster to import (was implied ~14-21×), ~30× smaller wheel (was ~46×). All still strong, wide margins — reported honestly rather than cherry-picked.
README.mdgains a "Why NETProtocols" section drawing the newly-cleared claims into the project's front door, in the tonedocs/CLAIMS.md4.2 sets for writing about competitors (facts with dates/versions, no editorializing, credit where due).What's included
docs/CLAIMS.md: Audit competitors' CI for performance gates before claiming ours is unique #124's audit table under 1.7; every HELD section (1.1-1.6, 2.1-2.3, 3.1, 4.1) re-measured, banner dropped, dated "Published 2026-09-04"; top-of-file embargo notice and Rule 5 updated to reflect the lift; three non-HELD sections (5.5, 5.7, 5.9) reworded so they no longer reference a "standing embargo" that no longer exists — they stay unpublished because they were never audited, not because Roadmap: post-1.3.0 — performance, platform, typing, proof #107 was open; the section-6 "faster than dpkt" entry corrected to match the new number.README.md: new "Why NETProtocols" section (comparative bullets, the mypy--strictsnippet, browser/Pyodide andmatch/caseclaims); Roadmap section updated to reflect Roadmap: post-1.3.0 — performance, platform, typing, proof #107's completion.scripts/benchmark_encode.py(new): reproduction script for the encoding-throughput claim (1.3), which previously had none — Rule 1 requires one.scripts/benchmark_import.py(new): reproduction script for the import-time claim (1.4), same reasoning.CHANGELOG.md: entry under## [Unreleased].Verification
uv run --frozen ruff check .anduv run --frozen ruff format --check .are cleanuv run --frozen mypyis clean (strict) — 31 source filesuv run --frozen pytestpasses locally — 1088 passeduv run --frozen python scripts/benchmark.py --check --threshold 15— within threshold (-8.5% vs. the v1.3.0 baseline on file)CHANGELOG.mdhas an entry under## [Unreleased]No
src/changes — this is docs/tooling only, as expected for a research-and-publish issue pair.Notes
#107itself is a tracking issue with no fixed completion state a PR can close automatically; it'll be closed directly with a summary comment once this merges, matching how prior tiers' closing sweeps handled it.#101(the rolling claims-register issue) will get a comment noting this work advanced both its unchecked acceptance criteria, without closing it — it's explicitly rolling.Closes #124.
🤖 Generated with Claude Code
https://claude.ai/code/session_0143tMFpiopxYLf6A2EeDyo9
Generated by Claude Code