Functions
protobuf/third_party/benchmark/test/reporter_output_test.cc File Reference
#include <utility>
#include "benchmark/benchmark.h"
#include "output_test.h"
Include dependency graph for protobuf/third_party/benchmark/test/reporter_output_test.cc:

Go to the source code of this file.

Functions

 ADD_CASES (TC_ConsoleOut, {{".*BM_RepeatTimeUnit/repeats:3 ", MR_Not}, {"^BM_RepeatTimeUnit/repeats:3_mean %console_us_report$"}, {"^BM_RepeatTimeUnit/repeats:3_stddev %console_us_report$"}})
 
 ADD_CASES (TC_ConsoleOut, {{".*BM_SummaryRepeat/repeats:3 ", MR_Not}, {"^BM_SummaryRepeat/repeats:3_mean %console_report$"}, {"^BM_SummaryRepeat/repeats:3_stddev %console_report$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^[-]+$", MR_Next}, {"^Benchmark %s Time %s CPU %s Iterations$", MR_Next}, {"^[-]+$", MR_Next}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_arg_name/first:3 %console_report$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_arg_names/first:2/5/third:4 %console_report$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_basic %console_report$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_bytes_per_second %console_report +%floatB/s$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_Complexity_O1_BigO %bigOStr %bigOStr[ ]*$"}, {"^BM_Complexity_O1_RMS %RMS %RMS[ ]*$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_error[ ]+ERROR OCCURRED: 'message'$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_items_per_second %console_report +%float items/s$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_label %console_report some label$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_no_arg_name/3 %console_report$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_Repeat/repeats:3 %console_report$"}, {"^BM_Repeat/repeats:3 %console_report$"}, {"^BM_Repeat/repeats:3 %console_report$"}, {"^BM_Repeat/repeats:3_mean %console_report$"}, {"^BM_Repeat/repeats:3_stddev %console_report$"}})
 
 ADD_CASES (TC_ConsoleOut, {{"^BM_RepeatOnce/repeats:1 %console_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"%csv_header"}})
 
 ADD_CASES (TC_CSVOut, {{".*BM_RepeatTimeUnit/repeats:3 ", MR_Not}, {"^\"BM_RepeatTimeUnit/repeats:3_mean\",%csv_us_report$"}, {"^\"BM_RepeatTimeUnit/repeats:3_stddev\",%csv_us_report$"}})
 
 ADD_CASES (TC_CSVOut, {{".*BM_SummaryRepeat/repeats:3 ", MR_Not}, {"^\"BM_SummaryRepeat/repeats:3_mean\",%csv_report$"}, {"^\"BM_SummaryRepeat/repeats:3_stddev\",%csv_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_arg_name/first:3\",%csv_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_arg_names/first:2/5/third:4\",%csv_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_basic\",%csv_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_bytes_per_second\",%csv_bytes_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_error\",,,,,,,,true,\"message\"$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_items_per_second\",%csv_items_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_label\",%csv_label_report_begin\"some " "label\"%csv_label_report_end$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_no_arg_name/3\",%csv_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_Repeat/repeats:3\",%csv_report$"}, {"^\"BM_Repeat/repeats:3\",%csv_report$"}, {"^\"BM_Repeat/repeats:3\",%csv_report$"}, {"^\"BM_Repeat/repeats:3_mean\",%csv_report$"}, {"^\"BM_Repeat/repeats:3_stddev\",%csv_report$"}})
 
 ADD_CASES (TC_CSVOut, {{"^\"BM_RepeatOnce/repeats:1\",%csv_report$"}})
 
 ADD_CASES (TC_JSONOut, {{".*BM_RepeatTimeUnit/repeats:3 ", MR_Not}, {"\"name\": \"BM_RepeatTimeUnit/repeats:3_mean\",$"}, {"\"time_unit\": \"us\",?$"}, {"\"name\": \"BM_RepeatTimeUnit/repeats:3_stddev\",$"}, {"\"time_unit\": \"us\",?$"}})
 
 ADD_CASES (TC_JSONOut, {{".*BM_SummaryRepeat/repeats:3 ", MR_Not}, {"\"name\": \"BM_SummaryRepeat/repeats:3_mean\",$"}, {"\"name\": \"BM_SummaryRepeat/repeats:3_stddev\",$"}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_arg_name/first:3\",$"}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_arg_names/first:2/5/third:4\",$"}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_basic\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\"$", MR_Next}, {"}", MR_Next}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_bytes_per_second\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bytes_per_second\": %int$", MR_Next}, {"}", MR_Next}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_error\",$"}, {"\"error_occurred\": true,$", MR_Next}, {"\"error_message\": \"message\",$", MR_Next}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_items_per_second\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"items_per_second\": %int$", MR_Next}, {"}", MR_Next}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_label\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"label\": \"some label\"$", MR_Next}, {"}", MR_Next}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_no_arg_name/3\",$"}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Repeat/repeats:3\",$"}, {"\"name\": \"BM_Repeat/repeats:3\",$"}, {"\"name\": \"BM_Repeat/repeats:3\",$"}, {"\"name\": \"BM_Repeat/repeats:3_mean\",$"}, {"\"name\": \"BM_Repeat/repeats:3_stddev\",$"}})
 
 ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_RepeatOnce/repeats:1\",$"}})
 
 ArgNames ({"first", "", "third"})
 
 BENCHMARK (BM_arg_name) -> ArgName("first") ->Arg(3)
 
 BENCHMARK (BM_arg_names) -> Args(
 
 BENCHMARK (BM_basic)
 
 BENCHMARK (BM_bytes_per_second)
 
 BENCHMARK (BM_Complexity_O1) -> Range(1, 1<< 18) ->Complexity(benchmark::o1)
 
 BENCHMARK (BM_error)
 
 BENCHMARK (BM_items_per_second)
 
 BENCHMARK (BM_label)
 
 BENCHMARK (BM_no_arg_name) -> Arg(3)
 
 BENCHMARK (BM_Repeat) -> Repetitions(3)
 
 BENCHMARK (BM_RepeatOnce) -> Repetitions(1) ->ReportAggregatesOnly()
 
 BENCHMARK (BM_SummaryRepeat) -> Repetitions(3) ->ReportAggregatesOnly()
 
void BM_arg_name (benchmark::State &state)
 
void BM_arg_names (benchmark::State &state)
 
void BM_basic (benchmark::State &state)
 
void BM_bytes_per_second (benchmark::State &state)
 
void BM_Complexity_O1 (benchmark::State &state)
 
void BM_error (benchmark::State &state)
 
void BM_items_per_second (benchmark::State &state)
 
void BM_label (benchmark::State &state)
 
void BM_no_arg_name (benchmark::State &state)
 
void BM_Repeat (benchmark::State &state)
 
void BM_RepeatOnce (benchmark::State &state)
 
void BM_RepeatTimeUnit (benchmark::State &state)
 
void BM_SummaryRepeat (benchmark::State &state)
 
int main (int argc, char *argv[])
 
 Repetitions (3) -> ReportAggregatesOnly() ->Unit(benchmark::kMicrosecond)
 
 SET_SUBSTITUTIONS ({{"%bigOStr", "[ ]* %float \\([0-9]+\\)"}, {"%RMS", "[ ]*[0-9]+ %"}})
 

Function Documentation

◆ ADD_CASES() [1/39]

ADD_CASES ( TC_ConsoleOut  ,
{{".*BM_RepeatTimeUnit/repeats:3 ", MR_Not}, {"^BM_RepeatTimeUnit/repeats:3_mean %console_us_report$"}, {"^BM_RepeatTimeUnit/repeats:3_stddev %console_us_report$"}}   
)

◆ ADD_CASES() [2/39]

ADD_CASES ( TC_ConsoleOut  ,
{{".*BM_SummaryRepeat/repeats:3 ", MR_Not}, {"^BM_SummaryRepeat/repeats:3_mean %console_report$"}, {"^BM_SummaryRepeat/repeats:3_stddev %console_report$"}}   
)

◆ ADD_CASES() [3/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^[-]+$", MR_Next}, {"^Benchmark %s Time %s CPU %s Iterations$", MR_Next}, {"^[-]+$", MR_Next}}   
)

◆ ADD_CASES() [4/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_arg_name/first:3 %console_report$"}}   
)

◆ ADD_CASES() [5/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_arg_names/first:2/5/third:4 %console_report$"}}   
)

◆ ADD_CASES() [6/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_basic %console_report$"}}   
)

◆ ADD_CASES() [7/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_bytes_per_second %console_report +%floatB/s$"}}   
)

◆ ADD_CASES() [8/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Complexity_O1_BigO %bigOStr %bigOStr[ ]*$"}, {"^BM_Complexity_O1_RMS %RMS %RMS[ ]*$"}}   
)

◆ ADD_CASES() [9/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_error[ ]+ERROR OCCURRED: 'message'$"}}   
)

◆ ADD_CASES() [10/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_items_per_second %console_report +%float items/s$"}}   
)

◆ ADD_CASES() [11/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_label %console_report some label$"}}   
)

◆ ADD_CASES() [12/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_no_arg_name/3 %console_report$"}}   
)

◆ ADD_CASES() [13/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Repeat/repeats:3 %console_report$"}, {"^BM_Repeat/repeats:3 %console_report$"}, {"^BM_Repeat/repeats:3 %console_report$"}, {"^BM_Repeat/repeats:3_mean %console_report$"}, {"^BM_Repeat/repeats:3_stddev %console_report$"}}   
)

◆ ADD_CASES() [14/39]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_RepeatOnce/repeats:1 %console_report$"}}   
)

◆ ADD_CASES() [15/39]

ADD_CASES ( TC_CSVOut  ,
{{"%csv_header"}}   
)

◆ ADD_CASES() [16/39]

ADD_CASES ( TC_CSVOut  ,
{{".*BM_RepeatTimeUnit/repeats:3 ", MR_Not}, {"^\"BM_RepeatTimeUnit/repeats:3_mean\",%csv_us_report$"}, {"^\"BM_RepeatTimeUnit/repeats:3_stddev\",%csv_us_report$"}}   
)

◆ ADD_CASES() [17/39]

ADD_CASES ( TC_CSVOut  ,
{{".*BM_SummaryRepeat/repeats:3 ", MR_Not}, {"^\"BM_SummaryRepeat/repeats:3_mean\",%csv_report$"}, {"^\"BM_SummaryRepeat/repeats:3_stddev\",%csv_report$"}}   
)

◆ ADD_CASES() [18/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_arg_name/first:3\",%csv_report$"}}   
)

◆ ADD_CASES() [19/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_arg_names/first:2/5/third:4\",%csv_report$"}}   
)

◆ ADD_CASES() [20/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_basic\",%csv_report$"}}   
)

◆ ADD_CASES() [21/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_bytes_per_second\",%csv_bytes_report$"}}   
)

◆ ADD_CASES() [22/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_error\",,,,,,,,true,\"message\"$"}}   
)

◆ ADD_CASES() [23/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_items_per_second\",%csv_items_report$"}}   
)

◆ ADD_CASES() [24/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_label\",%csv_label_report_begin\"some " "label\"%csv_label_report_end$"}}   
)

◆ ADD_CASES() [25/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_no_arg_name/3\",%csv_report$"}}   
)

◆ ADD_CASES() [26/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_Repeat/repeats:3\",%csv_report$"}, {"^\"BM_Repeat/repeats:3\",%csv_report$"}, {"^\"BM_Repeat/repeats:3\",%csv_report$"}, {"^\"BM_Repeat/repeats:3_mean\",%csv_report$"}, {"^\"BM_Repeat/repeats:3_stddev\",%csv_report$"}}   
)

◆ ADD_CASES() [27/39]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_RepeatOnce/repeats:1\",%csv_report$"}}   
)

◆ ADD_CASES() [28/39]

ADD_CASES ( TC_JSONOut  ,
{{".*BM_RepeatTimeUnit/repeats:3 ", MR_Not}, {"\"name\": \"BM_RepeatTimeUnit/repeats:3_mean\",$"}, {"\"time_unit\": \"us\",?$"}, {"\"name\": \"BM_RepeatTimeUnit/repeats:3_stddev\",$"}, {"\"time_unit\": \"us\",?$"}}   
)

◆ ADD_CASES() [29/39]

ADD_CASES ( TC_JSONOut  ,
{{".*BM_SummaryRepeat/repeats:3 ", MR_Not}, {"\"name\": \"BM_SummaryRepeat/repeats:3_mean\",$"}, {"\"name\": \"BM_SummaryRepeat/repeats:3_stddev\",$"}}   
)

◆ ADD_CASES() [30/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_arg_name/first:3\",$"}}   
)

◆ ADD_CASES() [31/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_arg_names/first:2/5/third:4\",$"}}   
)

◆ ADD_CASES() [32/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_basic\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\"$", MR_Next}, {"}", MR_Next}}   
)

◆ ADD_CASES() [33/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_bytes_per_second\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bytes_per_second\": %int$", MR_Next}, {"}", MR_Next}}   
)

◆ ADD_CASES() [34/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_error\",$"}, {"\"error_occurred\": true,$", MR_Next}, {"\"error_message\": \"message\",$", MR_Next}}   
)

◆ ADD_CASES() [35/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_items_per_second\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"items_per_second\": %int$", MR_Next}, {"}", MR_Next}}   
)

◆ ADD_CASES() [36/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_label\",$"}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %int,$", MR_Next}, {"\"cpu_time\": %int,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"label\": \"some label\"$", MR_Next}, {"}", MR_Next}}   
)

◆ ADD_CASES() [37/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_no_arg_name/3\",$"}}   
)

◆ ADD_CASES() [38/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_Repeat/repeats:3\",$"}, {"\"name\": \"BM_Repeat/repeats:3\",$"}, {"\"name\": \"BM_Repeat/repeats:3\",$"}, {"\"name\": \"BM_Repeat/repeats:3_mean\",$"}, {"\"name\": \"BM_Repeat/repeats:3_stddev\",$"}}   
)

◆ ADD_CASES() [39/39]

ADD_CASES ( TC_JSONOut  ,
{{"\"name\": \"BM_RepeatOnce/repeats:1\",$"}}   
)

◆ ArgNames()

ArgNames ( {"first", "", "third"}  )

◆ BENCHMARK() [1/12]

BENCHMARK ( BM_arg_name  ) -> ArgName("first") ->Arg(3)

◆ BENCHMARK() [2/12]

BENCHMARK ( BM_arg_names  ) -> Args(

◆ BENCHMARK() [3/12]

BENCHMARK ( BM_basic  )

Definition at line 32 of file benchmark/test/options_test.cc.

◆ BENCHMARK() [4/12]

BENCHMARK ( BM_bytes_per_second  )

◆ BENCHMARK() [5/12]

BENCHMARK ( BM_Complexity_O1  ) -> Range(1, 1<< 18) ->Complexity(benchmark::o1)

◆ BENCHMARK() [6/12]

BENCHMARK ( BM_error  )

◆ BENCHMARK() [7/12]

BENCHMARK ( BM_items_per_second  )

◆ BENCHMARK() [8/12]

BENCHMARK ( BM_label  )

◆ BENCHMARK() [9/12]

BENCHMARK ( BM_no_arg_name  ) -> Arg(3)

◆ BENCHMARK() [10/12]

BENCHMARK ( BM_Repeat  ) -> Repetitions(3)

◆ BENCHMARK() [11/12]

BENCHMARK ( BM_RepeatOnce  ) -> Repetitions(1) ->ReportAggregatesOnly()

◆ BENCHMARK() [12/12]

BENCHMARK ( BM_SummaryRepeat  ) -> Repetitions(3) ->ReportAggregatesOnly()

◆ BM_arg_name()

void BM_arg_name ( benchmark::State state)

◆ BM_arg_names()

void BM_arg_names ( benchmark::State state)

◆ BM_basic()

void BM_basic ( benchmark::State state)

◆ BM_bytes_per_second()

void BM_bytes_per_second ( benchmark::State state)

◆ BM_Complexity_O1()

void BM_Complexity_O1 ( benchmark::State state)

◆ BM_error()

void BM_error ( benchmark::State state)

◆ BM_items_per_second()

void BM_items_per_second ( benchmark::State state)

◆ BM_label()

void BM_label ( benchmark::State state)

◆ BM_no_arg_name()

void BM_no_arg_name ( benchmark::State state)

◆ BM_Repeat()

void BM_Repeat ( benchmark::State state)

◆ BM_RepeatOnce()

void BM_RepeatOnce ( benchmark::State state)

◆ BM_RepeatTimeUnit()

void BM_RepeatTimeUnit ( benchmark::State state)

◆ BM_SummaryRepeat()

void BM_SummaryRepeat ( benchmark::State state)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ Repetitions()

Repetitions ( ) -> ReportAggregatesOnly() ->Unit(benchmark::kMicrosecond)

◆ SET_SUBSTITUTIONS()

SET_SUBSTITUTIONS ( {{"%bigOStr", "[ ]* %float \\([0-9]+\\)"}, {"%RMS", "[ ]*[0-9]+ %"}}  )


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:28