Go to the source code of this file.
Functions | |
ADD_CASES (TC_ConsoleOut, {{"^[-]+$", MR_Next}, {"^Benchmark %s Time %s CPU %s Iterations UserCounters...$", MR_Next}, {"^[-]+$", MR_Next}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_AvgIterations %console_report " "bar=%hrfloat foo=%hrfloat$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_AvgThreads/threads:%int " "%console_report bar=%hrfloat foo=%hrfloat$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_AvgThreadsRate/threads:%int " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_InvertedRate %console_report " "bar=%hrfloats foo=%hrfloats$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_IterationInvariant %console_report " "bar=%hrfloat foo=%hrfloat$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_kAvgIterationsRate " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_kIsIterationInvariantRate " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_Rate %console_report bar=%hrfloat/s foo=%hrfloat/s$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_Simple %console_report bar=%hrfloat foo=%hrfloat$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_Threads/threads:%int %console_report " "bar=%hrfloat foo=%hrfloat$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Counters_WithBytesAndItemsPSec %console_report " "bar=%hrfloat bytes_per_second=%hrfloat/s " "foo=%hrfloat items_per_second=%hrfloat/s$"}}) | |
ADD_CASES (TC_ConsoleOut, {{"^BM_Invert %console_report bar=%hrfloatu foo=%hrfloatk$"}}) | |
ADD_CASES (TC_CSVOut, {{"%csv_header,\"bar\",\"foo\""}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_AvgIterations\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_AvgThreads/threads:%int\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_AvgThreadsRate/" "threads:%int\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_InvertedRate\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_IterationInvariant\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_kAvgIterationsRate\",%csv_report," "%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_kIsIterationInvariantRate\",%csv_report," "%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_Rate\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_Simple\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_Threads/threads:%int\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Counters_WithBytesAndItemsPSec\"," "%csv_bytes_items_report,%float,%float$"}}) | |
ADD_CASES (TC_CSVOut, {{"^\"BM_Invert\",%csv_report,%float,%float$"}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_AvgIterations\",$"}, {"\"family_index\": 10,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_AvgIterations\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_AvgThreads/threads:%int\",$"}, {"\"family_index\": 6,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_AvgThreads/threads:%int\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_AvgThreadsRate/threads:%int\",$"}, {"\"family_index\": 7,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_AvgThreadsRate/threads:%int\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_InvertedRate\",$"}, {"\"family_index\": 4,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_InvertedRate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_IterationInvariant\",$"}, {"\"family_index\": 8,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_IterationInvariant\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_kAvgIterationsRate\",$"}, {"\"family_index\": 11,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_kAvgIterationsRate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_kIsIterationInvariantRate\",$"}, {"\"family_index\": 9,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_kIsIterationInvariantRate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_Rate\",$"}, {"\"family_index\": 2,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_Rate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_Simple\",$"}, {"\"family_index\": 0,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_Simple\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_Threads/threads:%int\",$"}, {"\"family_index\": 5,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_Threads/threads:%int\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Counters_WithBytesAndItemsPSec\",$"}, {"\"family_index\": 1,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_WithBytesAndItemsPSec\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"bytes_per_second\": %float,$", MR_Next}, {"\"foo\": %float,$", MR_Next}, {"\"items_per_second\": %float$", MR_Next}, {"}", MR_Next}}) | |
ADD_CASES (TC_JSONOut, {{"\"name\": \"BM_Invert\",$"}, {"\"family_index\": 3,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Invert\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}}) | |
BENCHMARK (BM_Counters_AvgIterations) | |
BENCHMARK (BM_Counters_AvgThreads) -> ThreadRange(1, 8) | |
BENCHMARK (BM_Counters_AvgThreadsRate) -> ThreadRange(1, 8) | |
BENCHMARK (BM_Counters_InvertedRate) | |
BENCHMARK (BM_Counters_IterationInvariant) | |
BENCHMARK (BM_Counters_kAvgIterationsRate) | |
BENCHMARK (BM_Counters_kIsIterationInvariantRate) | |
BENCHMARK (BM_Counters_Rate) | |
BENCHMARK (BM_Counters_Simple) | |
BENCHMARK (BM_Counters_Threads) -> ThreadRange(1, 8) | |
BENCHMARK (BM_Counters_WithBytesAndItemsPSec) | |
BENCHMARK (BM_Invert) | |
void | BM_Counters_AvgIterations (benchmark::State &state) |
void | BM_Counters_AvgThreads (benchmark::State &state) |
void | BM_Counters_AvgThreadsRate (benchmark::State &state) |
void | BM_Counters_InvertedRate (benchmark::State &state) |
void | BM_Counters_IterationInvariant (benchmark::State &state) |
void | BM_Counters_kAvgIterationsRate (benchmark::State &state) |
void | BM_Counters_kIsIterationInvariantRate (benchmark::State &state) |
void | BM_Counters_Rate (benchmark::State &state) |
void | BM_Counters_Simple (benchmark::State &state) |
void | BM_Counters_Threads (benchmark::State &state) |
void | BM_Counters_WithBytesAndItemsPSec (benchmark::State &state) |
void | BM_Invert (benchmark::State &state) |
CHECK_BENCHMARK_RESULTS ("BM_Counters_AvgIterations", &CheckAvgIterations) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_AvgThreads/threads:%int", &CheckAvgThreads) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_AvgThreadsRate/threads:%int", &CheckAvgThreadsRate) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_InvertedRate", &CheckInvertedRate) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_IterationInvariant", &CheckIterationInvariant) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_kAvgIterationsRate", &CheckAvgIterationsRate) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_kIsIterationInvariantRate", &CheckIsIterationInvariantRate) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_Rate", &CheckRate) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_Simple", &CheckSimple) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_Threads/threads:%int", &CheckThreads) | |
CHECK_BENCHMARK_RESULTS ("BM_Counters_WithBytesAndItemsPSec", &CheckBytesAndItemsPSec) | |
CHECK_BENCHMARK_RESULTS ("BM_Invert", &CheckInvert) | |
void | CheckAvgIterations (Results const &e) |
void | CheckAvgIterationsRate (Results const &e) |
void | CheckAvgThreads (Results const &e) |
void | CheckAvgThreadsRate (Results const &e) |
void | CheckBytesAndItemsPSec (Results const &e) |
void | CheckInvert (Results const &e) |
void | CheckInvertedRate (Results const &e) |
void | CheckIsIterationInvariantRate (Results const &e) |
void | CheckIterationInvariant (Results const &e) |
void | CheckRate (Results const &e) |
void | CheckSimple (Results const &e) |
void | CheckThreads (Results const &e) |
int | main (int argc, char *argv[]) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^[-]+$", MR_Next}, {"^Benchmark %s Time %s CPU %s Iterations UserCounters...$", MR_Next}, {"^[-]+$", MR_Next}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_AvgIterations %console_report " "bar=%hrfloat foo=%hrfloat$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_AvgThreads/threads:%int " "%console_report bar=%hrfloat foo=%hrfloat$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_AvgThreadsRate/threads:%int " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_InvertedRate %console_report " "bar=%hrfloats foo=%hrfloats$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_IterationInvariant %console_report " "bar=%hrfloat foo=%hrfloat$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_kAvgIterationsRate " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_kIsIterationInvariantRate " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_Rate %console_report bar=%hrfloat/s foo=%hrfloat/s$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_Simple %console_report bar=%hrfloat foo=%hrfloat$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_Threads/threads:%int %console_report " "bar=%hrfloat foo=%hrfloat$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Counters_WithBytesAndItemsPSec %console_report " "bar=%hrfloat bytes_per_second=%hrfloat/s " "foo=%hrfloat items_per_second=%hrfloat/s$"}} | |||
) |
ADD_CASES | ( | TC_ConsoleOut | , |
{{"^BM_Invert %console_report bar=%hrfloatu foo=%hrfloatk$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"%csv_header,\"bar\",\"foo\""}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_AvgIterations\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_AvgThreads/threads:%int\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_AvgThreadsRate/" "threads:%int\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_InvertedRate\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_IterationInvariant\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_kAvgIterationsRate\",%csv_report," "%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_kIsIterationInvariantRate\",%csv_report," "%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_Rate\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_Simple\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_Threads/threads:%int\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Counters_WithBytesAndItemsPSec\"," "%csv_bytes_items_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_CSVOut | , |
{{"^\"BM_Invert\",%csv_report,%float,%float$"}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_AvgIterations\",$"}, {"\"family_index\": 10,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_AvgIterations\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_AvgThreads/threads:%int\",$"}, {"\"family_index\": 6,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_AvgThreads/threads:%int\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_AvgThreadsRate/threads:%int\",$"}, {"\"family_index\": 7,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_AvgThreadsRate/threads:%int\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_InvertedRate\",$"}, {"\"family_index\": 4,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_InvertedRate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_IterationInvariant\",$"}, {"\"family_index\": 8,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_IterationInvariant\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_kAvgIterationsRate\",$"}, {"\"family_index\": 11,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_kAvgIterationsRate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_kIsIterationInvariantRate\",$"}, {"\"family_index\": 9,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_kIsIterationInvariantRate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_Rate\",$"}, {"\"family_index\": 2,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_Rate\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_Simple\",$"}, {"\"family_index\": 0,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_Simple\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_Threads/threads:%int\",$"}, {"\"family_index\": 5,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_Threads/threads:%int\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Counters_WithBytesAndItemsPSec\",$"}, {"\"family_index\": 1,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Counters_WithBytesAndItemsPSec\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"bytes_per_second\": %float,$", MR_Next}, {"\"foo\": %float,$", MR_Next}, {"\"items_per_second\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
ADD_CASES | ( | TC_JSONOut | , |
{{"\"name\": \"BM_Invert\",$"}, {"\"family_index\": 3,$", MR_Next}, {"\"per_family_instance_index\": 0,$", MR_Next}, {"\"run_name\": \"BM_Invert\",$", MR_Next}, {"\"run_type\": \"iteration\",$", MR_Next}, {"\"repetitions\": 1,$", MR_Next}, {"\"repetition_index\": 0,$", MR_Next}, {"\"threads\": 1,$", MR_Next}, {"\"iterations\": %int,$", MR_Next}, {"\"real_time\": %float,$", MR_Next}, {"\"cpu_time\": %float,$", MR_Next}, {"\"time_unit\": \"ns\",$", MR_Next}, {"\"bar\": %float,$", MR_Next}, {"\"foo\": %float$", MR_Next}, {"}", MR_Next}} | |||
) |
BENCHMARK | ( | BM_Counters_AvgIterations | ) |
BENCHMARK | ( | BM_Counters_AvgThreads | ) | -> ThreadRange(1, 8) |
BENCHMARK | ( | BM_Counters_AvgThreadsRate | ) | -> ThreadRange(1, 8) |
BENCHMARK | ( | BM_Counters_InvertedRate | ) |
BENCHMARK | ( | BM_Counters_IterationInvariant | ) |
BENCHMARK | ( | BM_Counters_kAvgIterationsRate | ) |
BENCHMARK | ( | BM_Counters_kIsIterationInvariantRate | ) |
BENCHMARK | ( | BM_Counters_Rate | ) |
BENCHMARK | ( | BM_Counters_Simple | ) |
BENCHMARK | ( | BM_Counters_Threads | ) | -> ThreadRange(1, 8) |
BENCHMARK | ( | BM_Counters_WithBytesAndItemsPSec | ) |
BENCHMARK | ( | BM_Invert | ) |
void BM_Counters_AvgIterations | ( | benchmark::State & | state | ) |
Definition at line 466 of file benchmark/test/user_counters_test.cc.
void BM_Counters_AvgThreads | ( | benchmark::State & | state | ) |
Definition at line 288 of file benchmark/test/user_counters_test.cc.
void BM_Counters_AvgThreadsRate | ( | benchmark::State & | state | ) |
Definition at line 330 of file benchmark/test/user_counters_test.cc.
void BM_Counters_InvertedRate | ( | benchmark::State & | state | ) |
Definition at line 202 of file benchmark/test/user_counters_test.cc.
void BM_Counters_IterationInvariant | ( | benchmark::State & | state | ) |
Definition at line 374 of file benchmark/test/user_counters_test.cc.
void BM_Counters_kAvgIterationsRate | ( | benchmark::State & | state | ) |
Definition at line 508 of file benchmark/test/user_counters_test.cc.
void BM_Counters_kIsIterationInvariantRate | ( | benchmark::State & | state | ) |
Definition at line 417 of file benchmark/test/user_counters_test.cc.
void BM_Counters_Rate | ( | benchmark::State & | state | ) |
Definition at line 118 of file benchmark/test/user_counters_test.cc.
void BM_Counters_Simple | ( | benchmark::State & | state | ) |
Definition at line 25 of file benchmark/test/user_counters_test.cc.
void BM_Counters_Threads | ( | benchmark::State & | state | ) |
Definition at line 248 of file benchmark/test/user_counters_test.cc.
void BM_Counters_WithBytesAndItemsPSec | ( | benchmark::State & | state | ) |
Definition at line 67 of file benchmark/test/user_counters_test.cc.
void BM_Invert | ( | benchmark::State & | state | ) |
Definition at line 161 of file benchmark/test/user_counters_test.cc.
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_AvgIterations" | , |
& | CheckAvgIterations | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_AvgThreads/threads:%int" | , |
& | CheckAvgThreads | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_AvgThreadsRate/threads:%int" | , |
& | CheckAvgThreadsRate | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_InvertedRate" | , |
& | CheckInvertedRate | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_IterationInvariant" | , |
& | CheckIterationInvariant | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_kAvgIterationsRate" | , |
& | CheckAvgIterationsRate | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_kIsIterationInvariantRate" | , |
& | CheckIsIterationInvariantRate | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_Rate" | , |
& | CheckRate | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_Simple" | , |
& | CheckSimple | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_Threads/threads:%int" | , |
& | CheckThreads | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Counters_WithBytesAndItemsPSec" | , |
& | CheckBytesAndItemsPSec | ||
) |
CHECK_BENCHMARK_RESULTS | ( | "BM_Invert" | , |
& | CheckInvert | ||
) |
Definition at line 496 of file benchmark/test/user_counters_test.cc.
Definition at line 541 of file benchmark/test/user_counters_test.cc.
Definition at line 319 of file benchmark/test/user_counters_test.cc.
Definition at line 363 of file benchmark/test/user_counters_test.cc.
Definition at line 103 of file benchmark/test/user_counters_test.cc.
Definition at line 191 of file benchmark/test/user_counters_test.cc.
Definition at line 236 of file benchmark/test/user_counters_test.cc.
Definition at line 452 of file benchmark/test/user_counters_test.cc.
Definition at line 404 of file benchmark/test/user_counters_test.cc.
Definition at line 149 of file benchmark/test/user_counters_test.cc.
Definition at line 52 of file benchmark/test/user_counters_test.cc.
Definition at line 278 of file benchmark/test/user_counters_test.cc.
Definition at line 555 of file benchmark/test/user_counters_test.cc.