Skip to content

EVM: added tick count for sputnikvm to benchmark

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

Context

To benchmark tick/gas for the evm kernel, the tick count for run_transaction may not be the most suitable measure to take, as it includes various overheads that are constant.

To address the issue, we have included tick count for sputnik vm run time. This would be a better data to use to compute gas per tick.

Manually testing the MR

Build the kernel 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
Edited by Hantang Sun

Merge request reports