# `Benchee.RelativeStatistics`
[🔗](https://github.com/bencheeorg/benchee/blob/1.5.1/lib/benchee/relative_statistics.ex#L1)

Statistics that are relative from one scenario to another.

Such as how much slower/faster something is or what the absolute difference is in the measured
values.
Is its own step because it has to be executed after scenarios have been loaded via
`Benchee.ScenarioLoader` to include them in the calculation, while `Benchee.Statistics`
has to happen before they are loaded to avoid recalculating their statistics.

# `relative_statistics`

```elixir
@spec relative_statistics(Benchee.Suite.t()) :: Benchee.Suite.t()
```

Calculate the statistics of scenarios relative to each other and sorts scenarios.

Such as `relative_more`, `relative_less` and `absolute_difference`,
see `t:Benchee.Statistics.t/0` for more.

The sorting of scenarios is important so that they always have the same order in
all formatters. Scenarios are sorted first by run time average, then by memory average.

