Skip to content

refactor: pythonise benchmark file generation#16029

Merged
LHerskind merged 2 commits intonextfrom
lh/tmnt-83-ingition-specific-benchmark
Jul 28, 2025
Merged

refactor: pythonise benchmark file generation#16029
LHerskind merged 2 commits intonextfrom
lh/tmnt-83-ingition-specific-benchmark

Conversation

@LHerskind
Copy link
Copy Markdown
Contributor

@LHerskind LHerskind commented Jul 28, 2025

Altering the solidity benchmark file generation such that it is simpler to follow by not using awk but also making it a bit more elaborate to produce results for both ignition and alpha configurations in one go, making it simpler to get an idea of the "real" costs and not "the costs that the benchmark config have". The configuration is added to the markdown file, and the gas per second is also added to both benchmark and markdown doc.

I tried to group the benchmarks into different configs so they hopefully are easier to jump around in at the benchmark page.

Updated the l1 metadata loaded in benchmark slightly to better accomedate longer l2 block times without running out of data.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@LHerskind LHerskind requested a review from just-mitch July 28, 2025 10:00
@LHerskind LHerskind marked this pull request as ready for review July 28, 2025 10:01
@LHerskind LHerskind requested a review from charlielye as a code owner July 28, 2025 10:01
@LHerskind LHerskind force-pushed the lh/tmnt-83-ingition-specific-benchmark branch from 5c9a22d to cb5b552 Compare July 28, 2025 11:08
@LHerskind LHerskind force-pushed the lh/tmnt-83-ingition-specific-benchmark branch from cb5b552 to 2a8614d Compare July 28, 2025 11:58
submit_proof_gas = config_data["submitEpochRootProof"].get("mean", 0)

# Calculate gas cost per second
total_epoch_gas = setup_epoch_gas + (propose_gas * epoch_duration) + submit_proof_gas
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I read this as "total gas demanded by the protocol in an epoch" so I think we should multiply the submit_proof_gas by however many proofs will be subsidized.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, can alter that and put it as a variable. Related to that, it is likely some config we need to outline very directly how to alter.

@LHerskind LHerskind added this pull request to the merge queue Jul 28, 2025
Merged via the queue into next with commit be82c67 Jul 28, 2025
5 checks passed
@LHerskind LHerskind deleted the lh/tmnt-83-ingition-specific-benchmark branch July 28, 2025 14:53
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