Skip to content

chore(gas_costs): update local chain config with nightly benchmark results #2932

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

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 8, 2025

Updated benchmark results

Copy link
Collaborator

@xgreenx xgreenx left a comment

Choose a reason for hiding this comment

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

All opcodes became 2-3 times more expensive(except several).

We need to investigate why. I assume, maybe because of optimizations to fuel-vm(and new runner) baseline became more cheap, that automatically made all opcodes more expensive. @FuelLabs/client Who wants to do that?=D

We need to run block_target_gas.rs tests and see what is the average execution time for all opcodes with new gas prices.

I will approve for now, just to see what results it will produce next time.

}
},
"new_storage_per_byte": 63,
"new_storage_per_byte": 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice to use hardcoded value here. @rymnc Is that possible somehow to update it?=D Maybe we could make it part of the CI, or make it part of the collect binary

Copy link
Member

Choose a reason for hiding this comment

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

hmm, we can try. idk how to do it but i can check

Comment on lines +65 to +75
"ji": 1,
"jmp": 1,
"jne": 2,
"jnei": 2,
"jnzi": 2,
"jmpf": 2,
"jmpb": 2,
"jnzf": 2,
"jnzb": 2,
"jnef": 2,
"jneb": 2,
"jnei": 1,
"jnzi": 1,
"jmpf": 1,
"jmpb": 1,
"jnzf": 1,
"jnzb": 1,
"jnef": 1,
"jneb": 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't run benchmarks for all opcodes. Only for several of them:

image

In the past, I was updating manually them to much one value. Maybe we should add benchmarks for them, or update collect binary to use the same value for them=)

Copy link
Collaborator

Choose a reason for hiding this comment

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

@FuelLabs/client Who wants to do that?=D

Copy link
Contributor

Choose a reason for hiding this comment

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

I can do that tomorrow morning. If I understand well some of the opcode such as jnzf should have a benchmark but don't have and we want them to have one now or use the same value as another opcode that is doing something similar to the missing one ?

Comment on lines 148 to 159
"cfe": {
"LightOperation": {
"base": 10,
"units_per_gas": 62
"base": 3,
"units_per_gas": 256
}
},
"cfei": {
"LightOperation": {
"base": 10,
"units_per_gas": 66
"base": 3,
"units_per_gas": 394
}
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure why cfe became more cheaper...=D

@AurelienFT
Copy link
Contributor

I can also check that tomorrow morning for the block_target_gas.rs but I don't really understand how it will help us investigate the reason of the gas increase. Also if we run this on our computer the computer specs and so I don't see how the result would be coherent.
Maybe all my question is because I never worked on block_target_gas.rs and so idk how it works if someone have an explication.

@rymnc rymnc added the no changelog Skip the CI check of the changelog modification label Apr 8, 2025
@rymnc
Copy link
Member

rymnc commented Apr 8, 2025

this PR should probably be closed. we need to also update snapshot tests when we modify the local chain config.

i've tracked the set of follow ups here: #2933

@rymnc rymnc closed this Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Skip the CI check of the changelog modification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants