-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CLI for measuring execution time and cost #1628
Conversation
Benchmark for 9527f08Click to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from that comment about the network, it looks good.
impl TxnMeasure { | ||
pub fn run(&self) -> Result<(), Error> { | ||
let network = match &self.network { | ||
Some(n) => NetworkDefinition::from_str(n).map_err(Error::ParseNetworkError)?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NetworkDefinition::from_str()
doesn't have stokenet
as in comment above, also maybe there should be additional validation only for miannet
or stokenet
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me add stokenet
to NetworkDefinition
since it's so commonly used.
Summary
Add CLI for measuring execution time and cost.