-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: rework gas usage reporting (#203)
Partially completes #170
- Loading branch information
1 parent
bc4abc3
commit a2cb3c6
Showing
7 changed files
with
175 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
use benches::{access_control, erc20, erc721, merkle_proofs}; | ||
use benches::{access_control, erc20, erc721, merkle_proofs, report::Reports}; | ||
|
||
#[tokio::main] | ||
async fn main() -> eyre::Result<()> { | ||
let _ = tokio::join!( | ||
let reports = tokio::join!( | ||
access_control::bench(), | ||
erc20::bench(), | ||
erc721::bench(), | ||
merkle_proofs::bench() | ||
); | ||
|
||
let reports = [reports.0?, reports.1?, reports.2?, reports.3?]; | ||
let report = | ||
reports.into_iter().fold(Reports::default(), Reports::merge_with); | ||
|
||
println!("{report}"); | ||
|
||
Ok(()) | ||
} |
Oops, something went wrong.