Skip to content

Display per-tx execution time and state root time on block page#155

Merged
niran merged 2 commits intomasterfrom
niran/block-page-metering-times
Mar 21, 2026
Merged

Display per-tx execution time and state root time on block page#155
niran merged 2 commits intomasterfrom
niran/block-page-metering-times

Conversation

@niran
Copy link
Contributor

@niran niran commented Mar 21, 2026

Summary

  • Use results[i].executionTimeUs (per-tx EVM time) instead of totalExecutionTimeUs for execution time on the block page. On 0.6, totalExecutionTimeUs is set to output.total_time_us which is the wall-clock time for the entire meter_bundle call — including setup, teardown, and state root — double-counting stateRootTimeUs.
  • Add stateRootTimeUs from the bundle-level meter response as a separate field so the block page shows both execution and state root time per transaction.
  • Transaction rows display a single combined time (exec + state root); block stats show separate totals for each.

Context

PR #1111 in base/base fixes totalExecutionTimeUs to be the sum of per-tx times, but it hasn't been backported to 0.6. Until 0.7 is deployed, we use the per-tx values directly. There's a TODO comment to switch back once 0.7 lands.

niran added 2 commits March 20, 2026 00:15
Use results[i].executionTimeUs (per-tx EVM time) instead of
totalExecutionTimeUs, which on 0.6 is the wall-clock total_time_us
that double-counts state root time. Add stateRootTimeUs from the
bundle-level meter response as a separate field.
@niran niran merged commit b3b8ba8 into master Mar 21, 2026
6 checks passed
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.

1 participant