Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update frame/examples/basic/src/benchmarking.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi authored Oct 12, 2022
1 parent 4b168ec commit 1600913
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frame/examples/basic/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ benchmarks! {
// This will measure the execution time of `set_dummy`.
set_dummy_benchmark {
// This is the benchmark setup phase.
// `set_dummy` is a constant time function, hence we hard-code some random value here.
let value = 1000u32.into();
}: set_dummy(RawOrigin::Root, value) // The execution phase is just running `set_dummy` extrinsic call
verify {
Expand Down

0 comments on commit 1600913

Please sign in to comment.