BencheeCSV v0.2.0 Benchee.Formatters.CSV
Functionality for converting Benchee benchmarking results to CSV so that they can be written to file and opened in a spreadsheet tool for graph generation for instance.
Summary
Functions
Transforms the statistical results Benche.statistics
to be written
somewhere, such as a file through IO.write/2
Functions
Transforms the statistical results Benche.statistics
to be written
somewhere, such as a file through IO.write/2
.
Examples
iex> [{"My Job", %{average: 200.0, ips: 5000.0, std_dev: 20, std_dev_ratio: 0.1, std_dev_ips: 500, median: 190.0}}]
iex> |> Benchee.Formatters.CSV.format
iex> |> Enum.take(2)
["Name,Iterations per Second,Average,Standard Deviation,Standard Deviation Iterations Per Second,Standard Deviation Ratio,Median\r\n",
"My Job,5.0e3,200.0,20,500,0.1,190.0\r\n"]