Functions | Variables
re2/util/benchmark.cc File Reference
#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"
Include dependency graph for re2/util/benchmark.cc:

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
 

Function Documentation

◆ main()

int main ( int  argc,
const char **  argv 
)

Definition at line 123 of file re2/util/benchmark.cc.

◆ nsec()

static int64_t nsec ( )
static

Definition at line 30 of file re2/util/benchmark.cc.

◆ round()

static int round ( int  n)
static

Definition at line 67 of file re2/util/benchmark.cc.

◆ RunBench()

static void RunBench ( Benchmark *  b,
int  arg 
)
static

Definition at line 75 of file re2/util/benchmark.cc.

◆ RunFunc()

static void RunFunc ( Benchmark *  b,
int  iters,
int  arg 
)
static

Definition at line 58 of file re2/util/benchmark.cc.

◆ SetBenchmarkBytesProcessed()

void SetBenchmarkBytesProcessed ( int64_t  b)

Definition at line 54 of file re2/util/benchmark.cc.

◆ SetBenchmarkItemsProcessed()

void SetBenchmarkItemsProcessed ( int64_t  i)

Definition at line 56 of file re2/util/benchmark.cc.

◆ StartBenchmarkTiming()

void StartBenchmarkTiming ( )

Definition at line 41 of file re2/util/benchmark.cc.

◆ StopBenchmarkTiming()

void StopBenchmarkTiming ( )

Definition at line 47 of file re2/util/benchmark.cc.

◆ WantBench()

static bool WantBench ( const char *  name,
int  argc,
const char **  argv 
)
static

Definition at line 114 of file re2/util/benchmark.cc.

Variable Documentation

◆ benchmarks

Benchmark* benchmarks[10000]
static

Definition at line 21 of file re2/util/benchmark.cc.

◆ bytes

int64_t bytes
static

Definition at line 38 of file re2/util/benchmark.cc.

◆ items

int64_t items
static

Definition at line 39 of file re2/util/benchmark.cc.

◆ nbenchmarks

int nbenchmarks
static

Definition at line 22 of file re2/util/benchmark.cc.

◆ ns

int64_t ns
static

Definition at line 37 of file re2/util/benchmark.cc.

◆ t0

int64_t t0
static

Definition at line 36 of file re2/util/benchmark.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04