![]() |
|
#include "benchmark.h"
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <inttypes.h>
#include <time.h>
#include <map>
Namespaces | |
testing | |
Typedefs | |
typedef std::map< std::string, ::testing::Benchmark * > | BenchmarkMap |
typedef BenchmarkMap::iterator | BenchmarkMapIt |
Functions | |
BenchmarkMap & | gBenchmarks () |
static int | Round (int n) |
static int64_t | NanoTime () |
void | SetBenchmarkFlopsProcessed (int64_t x) |
void | StopBenchmarkTiming () |
void | StartBenchmarkTiming () |
int | main (int argc, char *argv[]) |
Variables | |
static int64_t | g_flops_processed |
static int64_t | g_benchmark_total_time_ns |
static int64_t | g_benchmark_start_time_ns |
static int | g_name_column_width = 20 |
typedef std::map<std::string, ::testing::Benchmark*> BenchmarkMap |
typedef BenchmarkMap::iterator BenchmarkMapIt |
BenchmarkMap& gBenchmarks | ( | ) |
Referenced by main(), and testing::Benchmark::Register().
References b, g_name_column_width, gBenchmarks(), max, and fix_broken_doxygen_formulae::stdout.
|
static |
References plotPSD::t.
Referenced by testing::Benchmark::RunRepeatedlyWithArg(), StartBenchmarkTiming(), and StopBenchmarkTiming().
void SetBenchmarkFlopsProcessed | ( | int64_t | x | ) |
References g_flops_processed, and plotDoE::x.
Referenced by BenchmarkSuite< Device, T >::finalizeBenchmark().
void StartBenchmarkTiming | ( | ) |
References g_benchmark_start_time_ns, and NanoTime().
Referenced by BenchmarkSuite< Device, T >::algebraicFunc(), BenchmarkSuite< Device, T >::broadcasting(), BenchmarkSuite< Device, T >::coeffWiseOp(), BenchmarkSuite< Device, T >::colChip(), BenchmarkSuite< Device, T >::colReduction(), BenchmarkSuite< Device, T >::contraction(), BenchmarkSuite< Device, T >::convolution(), BenchmarkSuite< Device, T >::fullReduction(), BenchmarkSuite< Device, T >::memcpy(), BenchmarkSuite< Device, T >::padding(), BenchmarkSuite< Device, T >::random(), BenchmarkSuite< Device, T >::rowChip(), BenchmarkSuite< Device, T >::rowReduction(), BenchmarkSuite< Device, T >::shuffling(), BenchmarkSuite< Device, T >::slicing(), BenchmarkSuite< Device, T >::striding(), BenchmarkSuite< Device, T >::transcendentalFunc(), and BenchmarkSuite< Device, T >::typeCasting().
void StopBenchmarkTiming | ( | ) |
References g_benchmark_start_time_ns, g_benchmark_total_time_ns, and NanoTime().
Referenced by BenchmarkSuite< Device, T >::finalizeBenchmark().
|
static |
Referenced by testing::Benchmark::RunRepeatedlyWithArg(), StartBenchmarkTiming(), and StopBenchmarkTiming().
|
static |
|
static |
|
static |
Referenced by main(), and testing::Benchmark::RunWithArg().