benchee_markdown v0.2.1 Benchee.Formatters.Markdown
Functionality for converting Benchee benchmarking results to an HTML page.
Examples
list = Enum.to_list(1..10_000)
map_fun = fn(i) -> [i, i * i] end
Benchee.run(
%{
"flat_map" => fn -> Enum.flat_map(list, map_fun) end,
"map.flatten" => fn -> list |> Enum.map(map_fun) |> List.flatten() end
},
formatters: [
Benchee.Formatters.Console,
{Benchee.Formatters.HTML, file: "samples_output/flat_map.html"}
]
)
Link to this section Summary
Functions
Formats the output of benchee to markdown page.
Uses the return value of Benchee.Formatters.Markdown.format/2
to write it
to the file defined in the initial configuration.
Link to this section Functions
Link to this function
format(suite, opts)
format(suite, opts)
format(Benchee.Suite.t(), term()) :: String.t()
format(Benchee.Suite.t(), term()) :: String.t()
Formats the output of benchee to markdown page.
Link to this function
write(data, map)
Uses the return value of Benchee.Formatters.Markdown.format/2
to write it
to the file defined in the initial configuration.