#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <chrono>
#include "util/benchmark.h"
#include "util/flags.h"
#include "re2/re2.h"
Go to the source code of this file.
Functions | |
int | main (int argc, const char **argv) |
static int64_t | nsec () |
static int | round (int n) |
static void | RunBench (Benchmark *b, int arg) |
static void | RunFunc (Benchmark *b, int iters, int arg) |
void | SetBenchmarkBytesProcessed (int64_t b) |
void | SetBenchmarkItemsProcessed (int64_t i) |
void | StartBenchmarkTiming () |
void | StopBenchmarkTiming () |
static bool | WantBench (const char *name, int argc, const char **argv) |
Variables | |
static Benchmark * | benchmarks [10000] |
static int64_t | bytes |
static int64_t | items |
static int | nbenchmarks |
static int64_t | ns |
static int64_t | t0 |
Definition at line 123 of file re2/util/benchmark.cc.
|
static |
Definition at line 30 of file re2/util/benchmark.cc.
Definition at line 67 of file re2/util/benchmark.cc.
|
static |
Definition at line 75 of file re2/util/benchmark.cc.
Definition at line 58 of file re2/util/benchmark.cc.
void SetBenchmarkBytesProcessed | ( | int64_t | b | ) |
Definition at line 54 of file re2/util/benchmark.cc.
void SetBenchmarkItemsProcessed | ( | int64_t | i | ) |
Definition at line 56 of file re2/util/benchmark.cc.
void StartBenchmarkTiming | ( | ) |
Definition at line 41 of file re2/util/benchmark.cc.
void StopBenchmarkTiming | ( | ) |
Definition at line 47 of file re2/util/benchmark.cc.
Definition at line 114 of file re2/util/benchmark.cc.
|
static |
Definition at line 21 of file re2/util/benchmark.cc.
|
static |
Definition at line 38 of file re2/util/benchmark.cc.
|
static |
Definition at line 39 of file re2/util/benchmark.cc.
|
static |
Definition at line 22 of file re2/util/benchmark.cc.
|
static |
Definition at line 37 of file re2/util/benchmark.cc.
|
static |
Definition at line 36 of file re2/util/benchmark.cc.