Skip to content
Snippets Groups Projects
Unverified Commit 60146ba5 authored by Alexander Theißen's avatar Alexander Theißen Committed by GitHub
Browse files

pallet-revive: Fix the contract size related benchmarks (#7568)


Partly addresses https://github.com/paritytech/polkadot-sdk/issues/6157

The benchmarks measuring the impact of contract sizes on calling or
instantiating a contract were bogus because they needed to be written in
assembly in order to tightly control the basic block size.

This fixes the benchmarks for:
- call_with_code_per_byte
- upload_code
- instantiate_with_code

And adds a new benchmark that accounts for the fact that the interpreter
will always compile whole basic blocks:
- basic_block_compilation

After this PR only the weight we assign to instructions need to be
addressed.

---------

Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: default avatarPG Herveou <pgherveou@gmail.com>
parent 20ffada0
No related merge requests found
Pipeline #515427 waiting for manual action with stages
in 39 minutes and 34 seconds
Showing
with 701 additions and 500 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment