Skip to content

test(torrent): isolate and stream the large-fixture TCP benchmark - #168

Closed
linroid wants to merge 4 commits into
torrent-v2-01-session-admissionfrom
torrent-v2-01-baseline
Closed

linroid wants to merge 4 commits into
torrent-v2-01-session-admissionfrom
torrent-v2-01-baseline

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

The original benchmark allocated payload-sized buffers and loaded the native seeder into the measurement JVM, which made large-fixture comparisons unreliable. This adds streamed deterministic fixtures and isolates both downloaders and the Transmission seeder in separate processes. Every completed sample requires file-length and independent SHA-256 verification.

Part of #162; stacked on #167 (torrent-v2-01-session-admission). This PR contains only the benchmark harness and its documentation.

The harness records revision/platform identity, initialization, first verified progress, completion, heap/RSS and available CPU/descriptor counters. It alternates engine order, applies fixed execution deadlines, preserves failed/incomplete results, and disables Gradle caching for opt-in benchmark runs. Native RSS measures the actual pinned Transmission daemon, excluding its Java RPC controller. A fixture tracker advertises a private IPv4 address assigned to the host because Transmission rejects loopback tracker peers.

Validation:

  • Streamed fixture tests passed, including odd final pieces, deterministic output, and independent digest checks.
  • Revised 8 MiB + 37 byte smoke test passed for both engines with output verification.
  • Full five-run 1 GiB/10 GiB comparison is in progress at source revision 4b6d54953bc7fe13672fea990066ed099d5df2cf. All ten 1 GiB samples have verified successfully; 10 GiB samples and aggregate results remain pending.

Two earlier JNI-based reference attempts crashed and remain documented as incomplete. This direct TCP baseline does not certify the production sustained-throughput target: shaped swarms, matching cache/durability policy, mobile hardware, resource profiles, and soak gates remain work under #162. No deadline or target was relaxed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T13:00:43.845008Z 7d27103 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

  473 files  +3    473 suites  +3   3m 49s ⏱️ -23s
2 318 tests +1  2 318 ✅ +1  0 💤 ±0  0 ❌ ±0 
2 926 runs  +3  2 926 ✅ +3  0 💤 ±0  0 ❌ ±0 

Results for commit 7d27103. ± Comparison against base commit 1c7f7b2.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #231 (Contracts, verification infrastructure and resource limits) in the consolidated eight-PR stack for #162.

The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks.

Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment)

@linroid linroid closed this Sep 20, 2026
@linroid
linroid deleted the torrent-v2-01-baseline branch September 20, 2026 11:12
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