Benchee v0.2.0 Benchee.Formatters.Console

Formatter to transform the statistics output into a structure suitable for output through IO.puts on the console.

Summary

Functions

Formats the benchmark statistics to a report suitable for output on the CLI

Functions

format(jobs)

Formats the benchmark statistics to a report suitable for output on the CLI.

Examples

iex> jobs = [{"My Job", %{average: 200.0, ips: 5000.0, std_dev_ratio: 0.1, median: 190.0}}]
iex> Benchee.Formatters.Console.format(jobs)
["
Name                                    ips        average    deviation         median
",
"My Job                              5000.00       200.00μs    (±10.00%)       190.00μs"]