Repository navigation
Introduce "Min Block Time" test to complement MaxTPS - #376
Conversation
e8409df to
c6eec6c
Compare
c6eec6c to
a6d2a04
Compare
a6d2a04 to
064a576
Compare
064a576 to
bc542ca
Compare
bc542ca to
8366312
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new “minimum sustainable block time” benchmark (classic-only and mixed classic+Soroban variants) that complements the existing MaxTPS missions by binary-searching SCP ledger close time at a fixed TPS and evaluating latency via ledger.age.closed(-histogram) metrics.
Changes:
- Introduces
MinBlockTimeTestplus two new missions:MinBlockTimeClassicandMinBlockTimeMixed. - Extends
MissionContextand CLI options with--min-block-time-ms/--max-block-time-ms. - Updates JSON metric samples and documentation for the new missions.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/FSLibrary/json-type-samples/sample-metrics.json | Adds ledger.age.closed-histogram to metrics samples for type-provider access. |
| src/FSLibrary/StellarMissionContext.fs | Adds minBlockTimeMs / maxBlockTimeMs to mission context. |
| src/FSLibrary/StellarMission.fs | Registers the new MinBlockTime missions. |
| src/FSLibrary/MissionMinBlockTimeMixed.fs | Mixed-load wrapper mission that configures pubnet-like distributions and calls the shared test. |
| src/FSLibrary/MissionMinBlockTimeClassic.fs | Classic-payment wrapper mission that calls the shared test. |
| src/FSLibrary/MinBlockTimeTest.fs | Implements the binary search and SLA evaluation logic. |
| src/FSLibrary/FSLibrary.fsproj | Includes new source files in the library build. |
| src/FSLibrary.Tests/Tests.fs | Updates test MissionContext literal with new required fields. |
| src/App/Program.fs | Adds CLI flags and wires them into MissionContext. |
| doc/missions.md | Documents the newly added missions. |
| doc/measuring-minimum-block-time.md | Adds a new how-to document for running the min block time tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
SirTyson
left a comment
There was a problem hiding this comment.
LGTM! I'm wondering if it would be interesting to experiment with different timeout values at some point instead of harcoding them based on close time.
Yeah, I was thinking about this as well. I think it's too early to say right now, but we can iterate on this functionality as we learn more. |
Needed to support min block time testing (stellar/supercluster#376)
Requires stellar/stellar-core#5237 to function properly