Skip to content

Introduce "Min Block Time" test to complement MaxTPS - #376

Merged
marta-lokhova merged 4 commits into
stellar:mainfrom
marta-lokhova:minBlockTimeTest
Apr 21, 2026
Merged

marta-lokhova merged 4 commits into
stellar:mainfrom
marta-lokhova:minBlockTimeTest

Conversation

@marta-lokhova

@marta-lokhova marta-lokhova commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Requires stellar/stellar-core#5237 to function properly

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 MinBlockTimeTest plus two new missions: MinBlockTimeClassic and MinBlockTimeMixed.
  • Extends MissionContext and 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.

Comment thread src/FSLibrary/MinBlockTimeTest.fs Resolved
Comment thread src/FSLibrary/MinBlockTimeTest.fs Resolved
Comment thread doc/measuring-minimum-block-time.md Resolved
Comment thread src/FSLibrary/MinBlockTimeTest.fs Resolved
Comment thread doc/missions.md Resolved
Comment thread doc/measuring-minimum-block-time.md Resolved
Comment thread doc/measuring-minimum-block-time.md Resolved

@SirTyson SirTyson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@marta-lokhova

Copy link
Copy Markdown
Contributor Author

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.

@marta-lokhova
marta-lokhova merged commit b7d450c into stellar:main Apr 21, 2026
3 checks passed
pull Bot pushed a commit to soitun/stellar-core that referenced this pull request Apr 21, 2026
pull Bot pushed a commit to mikeyhodl/stellar-core that referenced this pull request Apr 22, 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.

3 participants