Skip to main content

report_cost

Function report_cost 

Source
pub fn report_cost(metric: &str, value: f64, unit: &str)
Expand description

One measured number, as a line scripts/perf.sh reads: COST metric=<name> value=<n> unit=<ms|ratio|count>. Lower is better in every unit. A character in metric outside letters, digits and _./- becomes _, so a label can be passed as it reads.