chore: add block building benchmark test for public-compute-heavy txs#11991
Merged
chore: add block building benchmark test for public-compute-heavy txs#11991
Conversation
Contributor
Changes to public function bytecode sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
IlyasRidhuan
approved these changes
Feb 14, 2025
fcarreiro
reviewed
Feb 14, 2025
| // Does a bunch of heavy compute | ||
| #[public] | ||
| fn sha256_hash_2048(data: [u8; 2048]) -> [u8; 32] { | ||
| std::hash::sha256(data) |
Contributor
There was a problem hiding this comment.
I guess this is ok if you want just any heavy compute, but looks like Tom has been migrating things: #11696 to another sha?
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.
Add an alternative mode for blockbuilding benchmark test that spams public-compute-heavy transactions (a big sha256) instead of the tiny/simple transactions in the standard one.