Skip to content

Commit

Permalink
contracts: Simplify benchmarks (paritytech#13595)
Browse files Browse the repository at this point in the history
* Remove batching

* Benchmark in bytes not kilobytes

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts

* Add rationale for picking batch numbers

---------

Co-authored-by: command-bot <>
  • Loading branch information
athei authored and nathanwhit committed Jul 19, 2023
1 parent f020c03 commit a423a5c
Show file tree
Hide file tree
Showing 5 changed files with 2,092 additions and 2,306 deletions.
2 changes: 1 addition & 1 deletion frame/contracts/src/benchmarking/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ pub fn max_pages<T: Config>() -> u32 {

fn inject_gas_metering<T: Config>(module: Module) -> Module {
let schedule = T::Schedule::get();
let gas_rules = schedule.rules(&module, Determinism::Deterministic);
let gas_rules = schedule.rules(Determinism::Deterministic);
let backend = gas_metering::host_function::Injector::new("seal0", "gas");
gas_metering::inject(module, backend, &gas_rules).unwrap()
}
Loading

0 comments on commit a423a5c

Please sign in to comment.