mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-20 06:48:53 +00:00
Merge pull request #56 from allisonvacanti/pow2_axis_compact_md
Reduce the width of pow2 axes in markdown tables.
This commit is contained in:
@@ -279,13 +279,9 @@ void markdown_printer::do_print_benchmark_results(
|
||||
const nvbench::int64_t value = axis_values.get_int64(name);
|
||||
const nvbench::int64_t exponent = int64_axis::compute_log2(value);
|
||||
table.add_cell(row,
|
||||
name + "_axis_pretty",
|
||||
name,
|
||||
fmt::format("2^{}", exponent));
|
||||
table.add_cell(row,
|
||||
name + "_axis_descriptive",
|
||||
fmt::format("({})", name),
|
||||
fmt::to_string(value));
|
||||
name,
|
||||
fmt::format("2^{} = {}", exponent, value));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user