[121] Bench: crossover point for batch vs individual send#140
Merged
truthixify merged 2 commits intoJul 26, 2026
Conversation
Add a cargo-bench harness that compares N stealth-sender::send calls against
one stealth-batch-sender::batch_send for N in {1,2,5,10,15,20}, records
instruction gas and wall-clock, and documents the N=1 crossover in PERF.md.
Closes 121
Co-authored-by: Cursor <cursoragent@cursor.com>
Keep crossover cargo-bench CI steps alongside non-blocking WASM build, and retain batch-sender unit test module wiring. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@Max-Owolabi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
Author
|
CI is waiting on first-time contributor workflow approval for this fork PR. Once approved, the stellar job will run |
Contributor
|
In, thanks. Now we have the answer for when batch beats individual, useful for both docs and tuning. |
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.
Closes #121
Summary
stealth-sender::sendcalls vs onestealth-batch-sender::batch_sendfor N in {1, 2, 5, 10, 15, 20}.stellar/bench/data/, and embeds the crossover inPERF.md.testutilsfeatures on sender/announcer/batch-sender so the harness links cleanly; wires batch-sender unit tests.Results
Instruction crossover at N = 1 — batch stays cheaper through N=20 (batch skips the cross-contract announce path).
Test plan
cargo bench -p wraith-stellar-bench-crossover --bench crossovercargo test -p stealth-batch-sender(host, rlib)cargo check -p stealth-batch-sender --target wasm32-unknown-unknownCloses 121