Functions
benchmark/test/user_counters_test.cc File Reference
#include "benchmark/benchmark.h"
#include "output_test.h"
Include dependency graph for benchmark/test/user_counters_test.cc:

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[])
 

Function Documentation

◆ ADD_CASES() [1/38]

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

◆ ADD_CASES() [2/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_AvgIterations %console_report " "bar=%hrfloat foo=%hrfloat$"}}   
)

◆ ADD_CASES() [3/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_AvgThreads/threads:%int " "%console_report bar=%hrfloat foo=%hrfloat$"}}   
)

◆ ADD_CASES() [4/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_AvgThreadsRate/threads:%int " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}}   
)

◆ ADD_CASES() [5/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_InvertedRate %console_report " "bar=%hrfloats foo=%hrfloats$"}}   
)

◆ ADD_CASES() [6/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_IterationInvariant %console_report " "bar=%hrfloat foo=%hrfloat$"}}   
)

◆ ADD_CASES() [7/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_kAvgIterationsRate " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}}   
)

◆ ADD_CASES() [8/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_kIsIterationInvariantRate " "%console_report bar=%hrfloat/s foo=%hrfloat/s$"}}   
)

◆ ADD_CASES() [9/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_Rate %console_report bar=%hrfloat/s foo=%hrfloat/s$"}}   
)

◆ ADD_CASES() [10/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_Simple %console_report bar=%hrfloat foo=%hrfloat$"}}   
)

◆ ADD_CASES() [11/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Counters_Threads/threads:%int %console_report " "bar=%hrfloat foo=%hrfloat$"}}   
)

◆ ADD_CASES() [12/38]

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() [13/38]

ADD_CASES ( TC_ConsoleOut  ,
{{"^BM_Invert %console_report bar=%hrfloatu foo=%hrfloatk$"}}   
)

◆ ADD_CASES() [14/38]

ADD_CASES ( TC_CSVOut  ,
{{"%csv_header,\"bar\",\"foo\""}}   
)

◆ ADD_CASES() [15/38]

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

◆ ADD_CASES() [16/38]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_Counters_AvgThreads/threads:%int\",%csv_report,%float,%float$"}}   
)

◆ ADD_CASES() [17/38]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_Counters_AvgThreadsRate/" "threads:%int\",%csv_report,%float,%float$"}}   
)

◆ ADD_CASES() [18/38]

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

◆ ADD_CASES() [19/38]

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

◆ ADD_CASES() [20/38]

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

◆ ADD_CASES() [21/38]

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

◆ ADD_CASES() [22/38]

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

◆ ADD_CASES() [23/38]

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

◆ ADD_CASES() [24/38]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_Counters_Threads/threads:%int\",%csv_report,%float,%float$"}}   
)

◆ ADD_CASES() [25/38]

ADD_CASES ( TC_CSVOut  ,
{{"^\"BM_Counters_WithBytesAndItemsPSec\"," "%csv_bytes_items_report,%float,%float$"}}   
)

◆ ADD_CASES() [26/38]

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

◆ ADD_CASES() [27/38]

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() [28/38]

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() [29/38]

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() [30/38]

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() [31/38]

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() [32/38]

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() [33/38]

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() [34/38]

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() [35/38]

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() [36/38]

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() [37/38]

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() [38/38]

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() [1/12]

BENCHMARK ( BM_Counters_AvgIterations  )

◆ BENCHMARK() [2/12]

BENCHMARK ( BM_Counters_AvgThreads  ) -> ThreadRange(1, 8)

◆ BENCHMARK() [3/12]

BENCHMARK ( BM_Counters_AvgThreadsRate  ) -> ThreadRange(1, 8)

◆ BENCHMARK() [4/12]

BENCHMARK ( BM_Counters_InvertedRate  )

◆ BENCHMARK() [5/12]

◆ BENCHMARK() [6/12]

◆ BENCHMARK() [7/12]

◆ BENCHMARK() [8/12]

BENCHMARK ( BM_Counters_Rate  )

◆ BENCHMARK() [9/12]

BENCHMARK ( BM_Counters_Simple  )

◆ BENCHMARK() [10/12]

BENCHMARK ( BM_Counters_Threads  ) -> ThreadRange(1, 8)

◆ BENCHMARK() [11/12]

◆ BENCHMARK() [12/12]

BENCHMARK ( BM_Invert  )

◆ BM_Counters_AvgIterations()

void BM_Counters_AvgIterations ( benchmark::State state)

Definition at line 466 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_AvgThreads()

void BM_Counters_AvgThreads ( benchmark::State state)

Definition at line 288 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_AvgThreadsRate()

void BM_Counters_AvgThreadsRate ( benchmark::State state)

Definition at line 330 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_InvertedRate()

void BM_Counters_InvertedRate ( benchmark::State state)

Definition at line 202 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_IterationInvariant()

void BM_Counters_IterationInvariant ( benchmark::State state)

Definition at line 374 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_kAvgIterationsRate()

void BM_Counters_kAvgIterationsRate ( benchmark::State state)

Definition at line 508 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_kIsIterationInvariantRate()

void BM_Counters_kIsIterationInvariantRate ( benchmark::State state)

Definition at line 417 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_Rate()

void BM_Counters_Rate ( benchmark::State state)

Definition at line 118 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_Simple()

void BM_Counters_Simple ( benchmark::State state)

Definition at line 25 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_Threads()

void BM_Counters_Threads ( benchmark::State state)

Definition at line 248 of file benchmark/test/user_counters_test.cc.

◆ BM_Counters_WithBytesAndItemsPSec()

void BM_Counters_WithBytesAndItemsPSec ( benchmark::State state)

Definition at line 67 of file benchmark/test/user_counters_test.cc.

◆ BM_Invert()

void BM_Invert ( benchmark::State state)

Definition at line 161 of file benchmark/test/user_counters_test.cc.

◆ CHECK_BENCHMARK_RESULTS() [1/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_AvgIterations"  ,
CheckAvgIterations 
)

◆ CHECK_BENCHMARK_RESULTS() [2/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_AvgThreads/threads:%int ,
CheckAvgThreads 
)

◆ CHECK_BENCHMARK_RESULTS() [3/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_AvgThreadsRate/threads:%int ,
CheckAvgThreadsRate 
)

◆ CHECK_BENCHMARK_RESULTS() [4/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_InvertedRate"  ,
CheckInvertedRate 
)

◆ CHECK_BENCHMARK_RESULTS() [5/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_IterationInvariant"  ,
CheckIterationInvariant 
)

◆ CHECK_BENCHMARK_RESULTS() [6/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_kAvgIterationsRate"  ,
CheckAvgIterationsRate 
)

◆ CHECK_BENCHMARK_RESULTS() [7/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_kIsIterationInvariantRate"  ,
CheckIsIterationInvariantRate 
)

◆ CHECK_BENCHMARK_RESULTS() [8/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_Rate"  ,
CheckRate 
)

◆ CHECK_BENCHMARK_RESULTS() [9/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_Simple"  ,
CheckSimple 
)

◆ CHECK_BENCHMARK_RESULTS() [10/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_Threads/threads:%int ,
CheckThreads 
)

◆ CHECK_BENCHMARK_RESULTS() [11/12]

CHECK_BENCHMARK_RESULTS ( "BM_Counters_WithBytesAndItemsPSec"  ,
CheckBytesAndItemsPSec 
)

◆ CHECK_BENCHMARK_RESULTS() [12/12]

CHECK_BENCHMARK_RESULTS ( "BM_Invert"  ,
CheckInvert 
)

◆ CheckAvgIterations()

void CheckAvgIterations ( Results const e)

Definition at line 496 of file benchmark/test/user_counters_test.cc.

◆ CheckAvgIterationsRate()

void CheckAvgIterationsRate ( Results const e)

Definition at line 541 of file benchmark/test/user_counters_test.cc.

◆ CheckAvgThreads()

void CheckAvgThreads ( Results const e)

Definition at line 319 of file benchmark/test/user_counters_test.cc.

◆ CheckAvgThreadsRate()

void CheckAvgThreadsRate ( Results const e)

Definition at line 363 of file benchmark/test/user_counters_test.cc.

◆ CheckBytesAndItemsPSec()

void CheckBytesAndItemsPSec ( Results const e)

Definition at line 103 of file benchmark/test/user_counters_test.cc.

◆ CheckInvert()

void CheckInvert ( Results const e)

Definition at line 191 of file benchmark/test/user_counters_test.cc.

◆ CheckInvertedRate()

void CheckInvertedRate ( Results const e)

Definition at line 236 of file benchmark/test/user_counters_test.cc.

◆ CheckIsIterationInvariantRate()

void CheckIsIterationInvariantRate ( Results const e)

Definition at line 452 of file benchmark/test/user_counters_test.cc.

◆ CheckIterationInvariant()

void CheckIterationInvariant ( Results const e)

Definition at line 404 of file benchmark/test/user_counters_test.cc.

◆ CheckRate()

void CheckRate ( Results const e)

Definition at line 149 of file benchmark/test/user_counters_test.cc.

◆ CheckSimple()

void CheckSimple ( Results const e)

Definition at line 52 of file benchmark/test/user_counters_test.cc.

◆ CheckThreads()

void CheckThreads ( Results const e)

Definition at line 278 of file benchmark/test/user_counters_test.cc.

◆ main()

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

Definition at line 555 of file benchmark/test/user_counters_test.cc.



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