Function reth_primitives_traits::constants::gas_units::format_gas_throughput
source · pub fn format_gas_throughput(gas: u64, execution_duration: Duration) -> String
Expand description
Returns a formatted gas throughput log, showing either:
- “Kgas/s”, or 1,000 gas per second
- “Mgas/s”, or 1,000,000 gas per second
- “Ggas/s”, or 1,000,000,000 gas per second
Depending on the magnitude of the gas throughput.