Lines Matching refs:benchmark
14 """Example of Python using C++ benchmark framework.
26 import google_benchmark as benchmark
30 @benchmark.register
36 @benchmark.register
41 @benchmark.register
53 @benchmark.register
57 return # NOTE: You must explicitly return, or benchmark will continue.
62 @benchmark.register
67 # Something to benchmark
73 @benchmark.register
75 """Collect custom metric using benchmark.Counter."""
95 @benchmark.register
96 @benchmark.option.measure_process_cpu_time()
97 @benchmark.option.use_real_time()
103 @benchmark.register(name="sum_million_microseconds")
104 @benchmark.option.unit(benchmark.kMicrosecond)
110 @benchmark.register
111 @benchmark.option.arg(100)
112 @benchmark.option.arg(1000)
118 @benchmark.register
119 @benchmark.option.range(8, limit=8 << 10)
125 @benchmark.register
126 @benchmark.option.range_multiplier(2)
127 @benchmark.option.range(1 << 10, 1 << 18)
128 @benchmark.option.complexity(benchmark.oN)
136 benchmark.main()