Benchee v0.99.0 Benchee.Conversion.DeviationPercent View Source
Helps with formattiong for the standard deviation ratio converting it into the more common percent form.
Only benchee plugins should use this code.
Link to this section Summary
Functions
Formates the standard deviation ratio to an equivalent percent number including special signs. The ± is an important part of it as it shows that the deviation might be up but also might be down
Link to this section Functions
Link to this function
format(std_dev_ratio) View Source
Formates the standard deviation ratio to an equivalent percent number including special signs. The ± is an important part of it as it shows that the deviation might be up but also might be down.
Examples
iex> Benchee.Conversion.DeviationPercent.format(0.12345)
"±12.35%"
iex> Benchee.Conversion.DeviationPercent.format(1)
"±100.00%"