-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Display max TPS from all nodes at end of client demo #716
Conversation
pgarg66
commented
Jul 19, 2018
- Also lists node with 0 TPS and overall average TPS
- Also lists node with 0 TPS and overall average TPS
src/bin/client-demo.rs
Outdated
let mut total_maxes = 0.0; | ||
for (max, txs, sock) in maxes.read().unwrap().iter() { | ||
println!("Node:{}, Max TPS: {:.2}", *sock, *max); | ||
if *max == 0.0 { |
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.
Use txs == 0
here? exact compare with float makes me cringe, although probably ok here.
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.
I'll change it to txs == 0
667dd15
to
5db8a7a
Compare
src/bin/client-demo.rs
Outdated
@@ -33,9 +33,14 @@ use std::thread::JoinHandle; | |||
use std::time::Duration; | |||
use std::time::Instant; | |||
|
|||
pub struct NodeStats { | |||
pub tps: f64, | |||
pub tx: u64, |
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.
can you please document these two fields? I can mostly guess what they mean but I'd rather not guess :)
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.
Done..
5db8a7a
to
9bf6390
Compare
* default staked client in LocalCluster * fix underflow
…#716) (solana-labs#723) * default staked client in LocalCluster (solana-labs#716) * default staked client in LocalCluster * fix underflow (cherry picked from commit e91a5e2) # Conflicts: # local-cluster/tests/local_cluster.rs * resolve conflicts --------- Co-authored-by: Andrew Fitzgerald <[email protected]>
* default staked client in LocalCluster (#716) * default staked client in LocalCluster * fix underflow (cherry picked from commit e91a5e2) # Conflicts: # local-cluster/tests/local_cluster.rs * resolve conflicts --------- Co-authored-by: Andrew Fitzgerald <[email protected]>
* default staked client in LocalCluster (#716) * default staked client in LocalCluster * fix underflow (cherry picked from commit e91a5e2) # Conflicts: # local-cluster/tests/local_cluster.rs * resolve conflicts --------- Co-authored-by: Andrew Fitzgerald <[email protected]>
…#716) (solana-labs#724) * default staked client in LocalCluster (solana-labs#716) * default staked client in LocalCluster * fix underflow (cherry picked from commit e91a5e2) # Conflicts: # local-cluster/tests/local_cluster.rs * resolve conflicts --------- Co-authored-by: Andrew Fitzgerald <[email protected]>