fn calculate_throughput(num_txns: usize, duration_ms: u128, prefix: &str) -> f64 {
        assert!(duration_ms > 0);
        let throughput = num_txns as f64 * 1000f64 / duration_ms as f64;
        info!(
            "{} throughput est = {} txns / {} ms = {:.2} rps.",
            prefix, num_txns, duration_ms, throughput,
        );
        throughput
    }
/// Calcuate average committed transactions per second.
Calcuate average committed transactions per second.
Calcuate average committed transactions per second .
fn calculate_throughput(num_txns: usize, duration_ms: u128, prefix: &str) -> f64 {
        assert!(duration_ms > 0);
        let throughput = num_txns as f64 * 1000f64 / duration_ms as f64;
        info!(
            "{} throughput est = {} txns / {} ms = {:.2} rps.",
            prefix, num_txns, duration_ms, throughput,
        );
        throughput
    }
fn calculate_throughput ( num_txns : usize , duration_ms : u128 , prefix : & str ) -> f64 { assert ! ( duration_ms 0 ) ; let throughput = num_txns as f64 * 1000f64 / duration_ms as f64 ; info ! ( " " prefix num_txns duration_ms throughput ) ; throughput }
Calcuate average committed transactions per second.
Calcuate average committed transactions per second .
num_txns
usize
duration_ms
u128
prefix
&str