Prechádzať zdrojové kódy

Add more messages for perf tests.

Jing Yang 4 rokov pred
rodič
commit
65e517ed66
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      src/network.rs

+ 4 - 0
src/network.rs

@@ -668,6 +668,10 @@ mod tests {
             handle.join().expect("All threads should succeed");
         }
         eprintln!("Many requests test took {:?}", now.elapsed());
+        eprintln!(
+            "The average RPC latency is {:?}",
+            now.elapsed() / (RPC_COUNT as u32)
+        );
     }
 
     // A typical request takes about 80ms.