Skip to content

feat(backend): add Stellar contract benchmarking service#436

Merged
adams813 merged 3 commits into
benelabs:mainfrom
TochukwuJustice:implement-contract
Jun 3, 2026
Merged

feat(backend): add Stellar contract benchmarking service#436
adams813 merged 3 commits into
benelabs:mainfrom
TochukwuJustice:implement-contract

Conversation

@TochukwuJustice
Copy link
Copy Markdown
Contributor

closes #371
Summary
Adds a backend contract benchmarking service for Soroban/Stellar performance samples.
Aggregates latency, CPU instructions, memory, ledger access, ledger I/O, transaction size, event/return bytes, ledger space rent, and resource fee metrics.
Adds baseline regression detection with configurable thresholds.
Exposes benchmark execution through the profiling API.
Updates backend test state setup for the expanded profiling state.

Reason For Changes
This implements the assigned backend feature for contract performance benchmarking and aligns the measured fields with Stellar/Soroban resource metering terminology and documentation.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@TochukwuJustice 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

# Conflicts:
#	backend/src/api/handlers/profiling.rs
#	backend/src/services/mod.rs
@Gezziy
Copy link
Copy Markdown
Contributor

Gezziy commented Jun 2, 2026

Kindly Merge PR, thank you!

@adams813
Copy link
Copy Markdown
Collaborator

adams813 commented Jun 3, 2026

Nice implementation, LGTM!

@adams813 adams813 merged commit 5c833b6 into benelabs:main Jun 3, 2026
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.

[Backend] Implement contract performance benchmarking service

3 participants