Skip to content

feat(bench): add governance and stealth-splitter benchmarks - #176

Merged
truthixify merged 1 commit into
wraith-protocol:developfrom
ryzen-xp:feat/stellar-bench-wave7-entrypoints
Aug 27, 2026
Merged

feat(bench): add governance and stealth-splitter benchmarks#176
truthixify merged 1 commit into
wraith-protocol:developfrom
ryzen-xp:feat/stellar-bench-wave7-entrypoints

Conversation

@ryzen-xp

Copy link
Copy Markdown

Summary

  • Extend the Stellar gas harness with Wave 7 and secondary entrypoints: withdraw_many (1/10/30), bulk_register / bulk_renew (5/10/20), extend_name_ttl, splitter create_split / fund_split (5/15/25 beneficiaries), vault deposit / claim / refund, and governance propose / vote / execute.
  • Rotate stellar/bench/baseline.json and the PERF.md auto-updated block in the same change so the +5% stellar-bench-pr gate covers the new rows instead of treating them as unknown.
  • Link stealth-splitter and governance as rlib + testutils for the bench crate only. No contract behavior changes.

Why

The +5% instructions gate could not catch regressions on Wave 7 paths (withdraw_many, bulk names, TTL extend) or secondary contracts (splitter, vault, governance) because those ops were missing from collect_rows / the committed baseline.

How it was tested

  • cargo bench -p wraith-stellar-bench --bench gas -- --format json --out baseline.json — JSON includes every new entrypoint; existing announcer/registry/send/names numbers are unchanged.
  • python3 bench/compare.py bench/baseline.json bench/baseline.json --threshold-pct 5 — OK, no per-op regression.
  • cargo fmt --all -- --check

Test plan

…argo.toml

- Introduced benchmarks for governance contract functions: propose, vote, and execute.
- Added benchmarks for stealth-splitter functions: create_split and fund_split with varying beneficiaries.
- Updated Cargo.toml files to include governance and stealth-splitter dependencies and testutils features.
- Updated PERF.md with new benchmark results and adjusted Cargo.lock accordingly.
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@ryzen-xp 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! 🚀

Learn more about application limits

@truthixify
truthixify merged commit 22f1143 into wraith-protocol:develop Aug 27, 2026
13 checks passed
@truthixify

Copy link
Copy Markdown
Contributor

Merged. Benches for governance and splitter close the last gap the regression gate could not see. Baseline rotated in the same PR as asked @ryzen-xp.

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.

Bench coverage expansion (withdraw_many, bulk_register, extend_name_ttl, splitter, vault, governance)

2 participants