Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

feat(benchmark): add a perf benchmark macro #391

Merged
merged 2 commits into from
Aug 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cargo fmt
KaoImin committed Aug 3, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 31b994ee3c5c620222e9e442a727510a43bac5ff
4 changes: 3 additions & 1 deletion benchmark/mod.rs
Original file line number Diff line number Diff line change
@@ -128,7 +128,9 @@ macro_rules! perf_exec {
)
.unwrap();

let resp = executor.exec(Context::new(), &params, &create_asset_txs).unwrap();
let resp = executor
.exec(Context::new(), &params, &create_asset_txs)
.unwrap();
params.state_root = resp.state_root;
params.height += 1;
params.timestamp += 2;