-
Notifications
You must be signed in to change notification settings - Fork 182
refactor(benchmark): update to benchmark test wrapper #2160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LouisTsai-Csie
wants to merge
15
commits into
ethereum:main
Choose a base branch
from
LouisTsai-Csie:refactor-benchmark-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
81be606
refactor(benchmark): update code generator interface
LouisTsai-Csie 4ac3005
refactor(benchmark): update worst bytecode scenario
LouisTsai-Csie 8502e69
refactor(benchmark): update worst compute scenario
LouisTsai-Csie 22c0712
refactor(benchmark): update worst memory scenario
LouisTsai-Csie 9f94d47
refactor(benchmark): update worst opcode scenario
LouisTsai-Csie 9f50834
refactor(benchmark): update worst statefule scenario
LouisTsai-Csie 4664c31
refactor(benchmark): update modexp cases by parameterization
LouisTsai-Csie cbcac72
refactor: remove blockchain filler in worst block cases
LouisTsai-Csie 50916a1
refactor: update blockhash case
LouisTsai-Csie bb20897
fix: resolve failing blob and block has tests
LouisTsai-Csie 41f0caa
fix: update linting comment length
LouisTsai-Csie 50b6b30
fix linting and typing issue
LouisTsai-Csie 12aceb8
fix incorrect logic for missing coverage
LouisTsai-Csie d77d3a4
refactor unop worst case
LouisTsai-Csie e2f2024
refactor(tests/benchmark): Optimize generators usages
marioevz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment is actually on the
max_iterations
line: I think thefork.max_stack_height
part of themin
only holds if theattack_block
pushes exactly one item to the stack, if it pushes zero items to the stack we can keep going, and if pushes more than one item to the stack we will overflow it.Bytecode
actually has properties that could help make this more fail-safe and are automatically calculated:execution-spec-tests/src/ethereum_test_vm/bytecode.py
Lines 35 to 38 in a9fc9ee