Skip to content

chore: run setupEpoch separately#13984

Merged
LHerskind merged 1 commit into
masterfrom
lh/gas-benchmarks
May 7, 2025
Merged

chore: run setupEpoch separately#13984
LHerskind merged 1 commit into
masterfrom
lh/gas-benchmarks

Conversation

@LHerskind

@LHerskind LHerskind commented May 1, 2025

Copy link
Copy Markdown
Contributor

Following the seed snapshots pr #13577 there was a change that mean that getCurrentProposer can end up running the setupEpoch (reducing number of different flows etc). However, that meant that when we were running our benchmark test to get some gas numbers, we never end up including the gas spent to setup the epoch. To address, we are now explicitly calling setupEpoch such that we get some neat measurements for it, also making it clear when changes are made that impact the sampling.

A nice side effect, is that it more simply allow us to do the proper amortized cost for sampling as the propose is for 360 tx, but sampling is for 11520 (32 * 360). This new setup makes it more simple to see the direct impact from the sampling on tx costs etc.

LHerskind commented May 1, 2025

Copy link
Copy Markdown
Contributor Author

@LHerskind LHerskind marked this pull request as ready for review May 1, 2025 07:42
@LHerskind LHerskind requested a review from charlielye as a code owner May 1, 2025 07:42
@LHerskind LHerskind requested a review from Maddiaa0 May 1, 2025 07:44
Base automatically changed from lh/scream-and-shout to master May 1, 2025 08:07
@github-actions github-actions Bot requested a review from just-mitch as a code owner May 1, 2025 08:07
@LHerskind LHerskind force-pushed the lh/gas-benchmarks branch from 0fc1650 to 4dc8c2a Compare May 1, 2025 08:51
@LHerskind LHerskind force-pushed the lh/gas-benchmarks branch from 4dc8c2a to d4ebfcd Compare May 1, 2025 14:30
@LHerskind LHerskind force-pushed the lh/gas-benchmarks branch from d4ebfcd to 0aedec3 Compare May 1, 2025 15:28
@LHerskind LHerskind added this pull request to the merge queue May 7, 2025
Merged via the queue into master with commit 8100532 May 7, 2025
8 checks passed
@LHerskind LHerskind deleted the lh/gas-benchmarks branch May 7, 2025 08:09
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.

2 participants