Skip to content

EVM: add gasometer benchmark scenario for calldataload

Hantang Sun requested to merge hantang@evm@benchmark_scenario_expensive into master

Context

The benchmark scenario has a very high ticks per gas value(476K gas for 9.76B ticks). This shows that the previous approach of using only a transaction level tick model would not work. And this scenario would be a useful test case to test the safety of our opcode level tick model.

Manually testing the MR

Build the evm kernel installer and run the benchmark script:

make -f kernels.mk EVM_CONFIG=src/kernel_evm/config/benchmarking.yaml evm_unstripped_installer.wasm

node src/kernel_evm/benchmarks/scripts/run_benchmarks.js

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR

Merge request reports