-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Update bhsh bench #2456
Update bhsh bench #2456
Changes from all commits
dbaad0c
91e28c0
6217b88
8bd474c
12000e9
9c69733
1f0d73a
c94e661
9d2b834
303b707
bdbd1b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ pub fn default_gas_costs() -> GasCostsValues { | |
andi: 2, | ||
bal: 274, | ||
bhei: 2, | ||
bhsh: 2, | ||
bhsh: 32, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how has this been calculated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the benchmark I modified There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant what steps did you follow to get this value? Asking for knowledge sharing purposes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found it pretty well explained here : https://github.com/FuelLabs/fuel-core/blob/master/benches/README.md However a little trick that green told me is to comment all the other vm opcode benches to win some time (except |
||
burn: 7566, | ||
cb: 2, | ||
cfsi: 2, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
"andi": 2, | ||
"bal": 366, | ||
"bhei": 2, | ||
"bhsh": 2, | ||
"bhsh": 32, | ||
"burn": 33949, | ||
"cb": 2, | ||
"cfei": 2, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
"andi": 2, | ||
"bal": 274, | ||
"bhei": 2, | ||
"bhsh": 2, | ||
"bhsh": 32, | ||
"burn": 7566, | ||
"cb": 2, | ||
"cfsi": 2, | ||
|
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.
qq: why are we inserting multiple genesis blocks?
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.
Because this is the only helpers that we have here and it doesn't change anything for our benchmarks has we never read the value.
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.
It would be nice if the block were 256KB and we tried to get the height for one of them=)
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.
One block = 256KB or the total of blocks is 256KB ?
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.
Because I don't understand what a bigger block will change because we just get the id field
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.
Each block 256KB. With the current implementation it changes nothing, but in the future if we change the implementation, it can be useful
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.
Okok idk how to build blocks with a specific size but will try (if you read this and know directly tell meeee) :)
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.
You can add one transaction with very huge script data
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.
Done