Skip to content
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

Updated VM initialization benchmark to include many inputs and outputs #1973

Merged

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Jun 15, 2024

Covers new behavior from FuelLabs/fuel-vm#770

Before requesting review

  • I have reviewed the code myself

@xgreenx xgreenx requested a review from a team June 15, 2024 10:31
@xgreenx xgreenx self-assigned this Jun 15, 2024
@@ -75,12 +96,13 @@ fn transaction<R: Rng>(

pub fn vm_initialization(c: &mut Criterion) {
let mut rng = StdRng::seed_from_u64(8586);
let consensus_params = ConsensusParameters::default();
let mut consensus_params = ConsensusParameters::default();
consensus_params.set_tx_params(TxParameters::default().with_max_size(256 * 1024));
Copy link
Member

Choose a reason for hiding this comment

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

Where does 256 * 1024 come from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

From the current configuration of the network. Testnet currently allows 256KB

@xgreenx xgreenx merged commit 83b2b70 into master Jun 15, 2024
33 checks passed
@xgreenx xgreenx deleted the feature/vm-initialization-benchmark-include-inputs-and-outptus branch June 15, 2024 21:53
@xgreenx xgreenx mentioned this pull request Jun 16, 2024
xgreenx added a commit that referenced this pull request Jun 16, 2024
## Version v0.30.0

### Added
- [#1975](#1975): Added
`DependentCost` benchmarks for the `cfe` and `cfei` opcodes.
- [#1975](#1975): Added
`DependentCost` for the `cfe` opcode to the `GasCosts` endpoint.
- [#1974](#1974): Optimized
the work of `InMemoryTransaction` for lookups and empty insertion.

### Changed
- [#1973](#1973): Updated VM
initialization benchmark to include many inputs and outputs.

#### Breaking
- [#1975](#1975): Updated gas
prices according to new release.
- [#1975](#1975): Changed
`GasCosts` endpoint to return `DependentCost` for the `cfei` opcode via
`cfeiDependentCost`.
- [#1975](#1975): Use `fuel-vm
0.54.0`. More information in the
[release](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.54.0).

## What's Changed
* Add `creation_instant` as second sort key in tx pool. by @AurelienFT
in #1964
* Updated VM initialization benchmark to include many inputs and outputs
by @xgreenx in #1973
* Fixes the error message for incorrect keypair's path by @xgreenx in
#1962
* Optimized the work of `InMemoryTransaction` for lookups and empty
insertion by @xgreenx in #1974
* Weekly `cargo update` by @github-actions in
#1976
* Use `fuel-vm 0.54.0` by @xgreenx in
#1975


**Full Changelog**:
v0.29.0...v0.30.0
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.

None yet

2 participants