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

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 Benchmarkbenchmarks [10000]
 
static int64_t bytes
 
static int64_t items
 
static int nbenchmarks
 
static int64_t ns
 
static int64_t t0
 

Function Documentation

◆ BenchmarkMemoryUsage()

void BenchmarkMemoryUsage ( )

Definition at line 66 of file bloaty/third_party/re2/util/benchmark.cc.

◆ DEFINE_string()

DEFINE_string ( test_tmpdir  ,
"/var/tmp"  ,
"temp directory"   
)

◆ main()

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

Definition at line 152 of file bloaty/third_party/re2/util/benchmark.cc.

◆ match()

static int match ( const char *  name,
int  argc,
const char **  argv 
)
static

Definition at line 143 of file bloaty/third_party/re2/util/benchmark.cc.

◆ nsec()

static int64_t nsec ( )
static

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

◆ NumCPUs()

int NumCPUs ( )

Definition at line 70 of file bloaty/third_party/re2/util/benchmark.cc.

◆ round()

static int round ( int  n)
static

Definition at line 91 of file bloaty/third_party/re2/util/benchmark.cc.

◆ RunBench()

void RunBench ( Benchmark b,
int  nthread,
int  siz 
)

Definition at line 103 of file bloaty/third_party/re2/util/benchmark.cc.

◆ runN()

static void runN ( Benchmark b,
int  n,
int  siz 
)
static

Definition at line 74 of file bloaty/third_party/re2/util/benchmark.cc.

◆ SetBenchmarkBytesProcessed()

void SetBenchmarkBytesProcessed ( int64_t  x)

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

◆ SetBenchmarkItemsProcessed()

void SetBenchmarkItemsProcessed ( int  n)

Definition at line 62 of file bloaty/third_party/re2/util/benchmark.cc.

◆ StartBenchmarkTiming()

void StartBenchmarkTiming ( )

Definition at line 57 of file bloaty/third_party/re2/util/benchmark.cc.

◆ StopBenchmarkTiming()

void StopBenchmarkTiming ( )

Definition at line 51 of file bloaty/third_party/re2/util/benchmark.cc.

Variable Documentation

◆ benchmarks

Benchmark* benchmarks[10000]
static

Definition at line 25 of file bloaty/third_party/re2/util/benchmark.cc.

◆ bytes

int64_t bytes
static

Definition at line 42 of file bloaty/third_party/re2/util/benchmark.cc.

◆ items

int64_t items
static

Definition at line 45 of file bloaty/third_party/re2/util/benchmark.cc.

◆ nbenchmarks

int nbenchmarks
static

Definition at line 26 of file bloaty/third_party/re2/util/benchmark.cc.

◆ ns

int64_t ns
static

Definition at line 43 of file bloaty/third_party/re2/util/benchmark.cc.

◆ t0

int64_t t0
static

Definition at line 44 of file bloaty/third_party/re2/util/benchmark.cc.



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