benchee_html v0.1.0 Benchee.Formatters.HTML
Functionality for converting Benchee benchmarking results to an HTML page with plotly.js generated graphs and friends.
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.HTML.output/1,
&Benchee.Formatters.Console.output/1
],
html: [file: "samples_output/flat_map.html"],
)
Summary
Functions
Transforms the statistical results from benchmarking to html to be written
somewhere, such as a file through IO.write/2
Uses Benchee.Formatters.HTML.format/1
to transform the statistics output to
HTML with JS, but also already writes it to a file defined in the initial
configuration under html: [file: "my.html"]
Functions
Transforms the statistical results from benchmarking to html to be written
somewhere, such as a file through IO.write/2
.
Uses Benchee.Formatters.HTML.format/1
to transform the statistics output to
HTML with JS, but also already writes it to a file defined in the initial
configuration under html: [file: "my.html"]