#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <chrono>
#include <thread>
#include "util/util.h"
#include "util/flags.h"
#include "util/benchmark.h"
#include "re2/re2.h"
Go to the source code of this file.
Functions | |
void | BenchmarkMemoryUsage () |
DEFINE_string (test_tmpdir, "/var/tmp", "temp directory") | |
int | main (int argc, const char **argv) |
static int | match (const char *name, int argc, const char **argv) |
static int64_t | nsec () |
int | NumCPUs () |
static int | round (int n) |
void | RunBench (Benchmark *b, int nthread, int siz) |
static void | runN (Benchmark *b, int n, int siz) |
void | SetBenchmarkBytesProcessed (int64_t x) |
void | SetBenchmarkItemsProcessed (int n) |
void | StartBenchmarkTiming () |
void | StopBenchmarkTiming () |
Variables | |
static Benchmark * | benchmarks [10000] |
static int64_t | bytes |
static int64_t | items |
static int | nbenchmarks |
static int64_t | ns |
static int64_t | t0 |
void BenchmarkMemoryUsage | ( | ) |
Definition at line 66 of file bloaty/third_party/re2/util/benchmark.cc.
DEFINE_string | ( | test_tmpdir | , |
"/var/tmp" | , | ||
"temp directory" | |||
) |
Definition at line 152 of file bloaty/third_party/re2/util/benchmark.cc.
Definition at line 143 of file bloaty/third_party/re2/util/benchmark.cc.
|
static |
Definition at line 37 of file bloaty/third_party/re2/util/benchmark.cc.
int NumCPUs | ( | ) |
Definition at line 70 of file bloaty/third_party/re2/util/benchmark.cc.
Definition at line 91 of file bloaty/third_party/re2/util/benchmark.cc.
Definition at line 103 of file bloaty/third_party/re2/util/benchmark.cc.
Definition at line 74 of file bloaty/third_party/re2/util/benchmark.cc.
void SetBenchmarkBytesProcessed | ( | int64_t | x | ) |
Definition at line 47 of file bloaty/third_party/re2/util/benchmark.cc.
void SetBenchmarkItemsProcessed | ( | int | n | ) |
Definition at line 62 of file bloaty/third_party/re2/util/benchmark.cc.
void StartBenchmarkTiming | ( | ) |
Definition at line 57 of file bloaty/third_party/re2/util/benchmark.cc.
void StopBenchmarkTiming | ( | ) |
Definition at line 51 of file bloaty/third_party/re2/util/benchmark.cc.
|
static |
Definition at line 25 of file bloaty/third_party/re2/util/benchmark.cc.
|
static |
Definition at line 42 of file bloaty/third_party/re2/util/benchmark.cc.
|
static |
Definition at line 45 of file bloaty/third_party/re2/util/benchmark.cc.
|
static |
Definition at line 26 of file bloaty/third_party/re2/util/benchmark.cc.
|
static |
Definition at line 43 of file bloaty/third_party/re2/util/benchmark.cc.
|
static |
Definition at line 44 of file bloaty/third_party/re2/util/benchmark.cc.