Repository navigation
Bring back medida::Timer now that CKMS compression is much faster - #5412
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Restores percentile-bearing medida timers for transaction latency metrics after CKMS optimizations.
Changes:
- Replaces transaction queue and overlay
SimpleTimermetrics withmedida::Timer. - Updates load generation and overlay tests for the restored metrics.
- Updates metric documentation and comments.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
docs/metrics.md |
Documents restored timer metrics. |
src/herder/TransactionQueue.cpp |
Registers queue latency timers. |
src/herder/TransactionQueue.h |
Changes queue metric types. |
src/ledger/LedgerManagerImpl.cpp |
Updates timer commentary. |
src/overlay/OverlayMetrics.cpp |
Restores the receive-transaction timer. |
src/overlay/OverlayMetrics.h |
Changes the cached metric type. |
src/overlay/test/OverlayTests.cpp |
Updates metric references in tests. |
src/simulation/LoadGenerator.cpp |
Reads applied counts from timers. |
Suppressed comments (1)
src/herder/TransactionQueue.cpp:1117
- This independently restores per-transaction CKMS work for the Soroban queue without performance evidence for this workload. The linked medida result relies on batching in the apply path, whereas this queue still records each sample individually; please provide a representative Soroban throughput comparison or use
UpdateManybefore enabling these timers, as required byCONTRIBUTING.md:56-60.
app.getMetrics().NewTimer({"herder", "pending-soroban-txs", "delay"}),
app.getMetrics().NewTimer(
{"herder", "pending-soroban-txs", "self-delay"}),
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Author
|
Perf of the change looks good. Some AI-assisted benchmarks: More importantly, Max TPS test passed 1650 mark in the most recent run, and v28.0.0 finished at 1692, so medida Timer is now just as performant. |
sisuresh
approved these changes
Aug 11, 2026
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.
Resolves #5353