You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This PR adds the option --benchmark_counters_tabular={true|false}, which makes the ConsoleReporter print the user counters in tabular format. The option defaults to false. This follows discussions in PR #262 (notably this and this).
To be clear:
by default, counters are printed at the end, the same way as bytes_processed and items_processed, as agreed in Add user-defined counters. #262 . This is best for cases in which there are few counters, or where there are only a couple of lines per benchmark.
when --benchmark_counters_tabular=true is given, then the counters are printed as a column of the table. This is best for cases in which there are a lot of counters, or a lot of lines per benchmark.
Here's an example comparison between the two versions (Note that I removed some whitespace from both examples).
First the default --benchmark_counters_tabular=false:
... compared to the tabular version --benchmark_counters_tabular=true. Note the additional printing of the header. This will happen any time the counter set changes.
This PR adds the option
--benchmark_counters_tabular={true|false}
, which makes the ConsoleReporter print the user counters in tabular format. The option defaults to false. This follows discussions in PR #262 (notably this and this).To be clear:
--benchmark_counters_tabular=true
is given, then the counters are printed as a column of the table. This is best for cases in which there are a lot of counters, or a lot of lines per benchmark.Here's an example comparison between the two versions (Note that I removed some whitespace from both examples).
First the default
--benchmark_counters_tabular=false
:... compared to the tabular version
--benchmark_counters_tabular=true
. Note the additional printing of the header. This will happen any time the counter set changes.