benchmark.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <vector>

Go to the source code of this file.

Classes

class  testing::Benchmark
 

Namespaces

 testing
 

Macros

#define BENCHMARK(f)    static ::testing::Benchmark* _benchmark_##f __attribute__((unused)) = (new ::testing::Benchmark(#f, f))
 

Functions

void SetBenchmarkFlopsProcessed (int64_t)
 
void StopBenchmarkTiming ()
 
void StartBenchmarkTiming ()
 

Macro Definition Documentation

◆ BENCHMARK

#define BENCHMARK (   f)     static ::testing::Benchmark* _benchmark_##f __attribute__((unused)) = (new ::testing::Benchmark(#f, f))

Function Documentation

◆ SetBenchmarkFlopsProcessed()

void SetBenchmarkFlopsProcessed ( int64_t  x)
189 { g_flops_processed = x; }
static int64_t g_flops_processed
Definition: benchmark_main.cc:26
list x
Definition: plotDoE.py:28

References g_flops_processed, and plotDoE::x.

Referenced by BenchmarkSuite< Device, T >::finalizeBenchmark().

◆ StartBenchmarkTiming()

◆ StopBenchmarkTiming()

void StopBenchmarkTiming ( )
190  {
191  if (g_benchmark_start_time_ns != 0) {
193  }
195 }
static int64_t g_benchmark_total_time_ns
Definition: benchmark_main.cc:27

References g_benchmark_start_time_ns, g_benchmark_total_time_ns, and NanoTime().

Referenced by BenchmarkSuite< Device, T >::finalizeBenchmark().