Go to the documentation of this file.
5 #ifndef UTIL_BENCHMARK_H_
6 #define UTIL_BENCHMARK_H_
11 #include "util/logging.h"
12 #include "util/util.h"
148 #define BENCHMARK(f) \
149 ::testing::Benchmark* _benchmark_##f = \
150 (new ::testing::Benchmark(#f, f))
152 #define BENCHMARK_RANGE(f, lo, hi) \
153 ::testing::Benchmark* _benchmark_##f = \
154 (new ::testing::Benchmark(#f, f, lo, hi))
156 #endif // UTIL_BENCHMARK_H_
void SetBytesProcessed(int64_t b)
Benchmark * ThreadRange(int lo, int hi)
void StartBenchmarkTiming()
int64_t iterations() const
int64_t range(int pos) const
Benchmark(const char *name, void(*func)(benchmark::State &))
Benchmark & operator=(const Benchmark &)=delete
State(int64_t iters, int64_t arg)
State & operator=(const State &)=delete
void SetBenchmarkItemsProcessed(int64_t i)
Benchmark(const char *name, void(*f)(int))
Benchmark(const char *name, void(*func)(benchmark::State &), int lo, int hi)
const std::function< void(int, int)> & func() const
void StopBenchmarkTiming()
const char * name() const
void SetItemsProcessed(int64_t i)
State(IterationCount max_iters, const std::vector< int64_t > &ranges, int thread_i, int n_threads, internal::ThreadTimer *timer, internal::ThreadManager *manager, internal::PerfCountersMeasurement *perf_counters_measurement)
std::function< void(int, int)> func_
void SetBenchmarkBytesProcessed(int64_t b)
def Benchmark(outbase, bench_cpu=True, runs=12, fasttable=False)
bool operator!=(const Iterator &that) const
static struct rpc_state state
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:46