Bitcoin ABC  0.28.12
P2P Digital Currency
Macros | Functions
bench.h File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "sys/time.h"
Include dependency graph for bench.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FP_EXP   (6)
 
#define FP_MULT   (1000000LL)
 

Functions

static int64_t gettime_i64 (void)
 
void print_number (const int64_t x)
 
void run_benchmark (char *name, void(*benchmark)(void *, int), void(*setup)(void *), void(*teardown)(void *, int), void *data, int count, int iter)
 
int have_flag (int argc, char **argv, char *flag)
 
int get_iters (int default_iters)
 

Macro Definition Documentation

◆ FP_EXP

#define FP_EXP   (6)

Definition at line 21 of file bench.h.

◆ FP_MULT

#define FP_MULT   (1000000LL)

Definition at line 22 of file bench.h.

Function Documentation

◆ get_iters()

int get_iters ( int  default_iters)

Definition at line 124 of file bench.h.

Here is the caller graph for this function:

◆ gettime_i64()

static int64_t gettime_i64 ( void  )
static

Definition at line 15 of file bench.h.

Here is the caller graph for this function:

◆ have_flag()

int have_flag ( int  argc,
char **  argv,
char *  flag 
)

Definition at line 109 of file bench.h.

Here is the caller graph for this function:

◆ print_number()

void print_number ( const int64_t  x)

Definition at line 25 of file bench.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_benchmark()

void run_benchmark ( char *  name,
void(*)(void *, int)  benchmark,
void(*)(void *)  setup,
void(*)(void *, int)  teardown,
void *  data,
int  count,
int  iter 
)

Definition at line 76 of file bench.h.

Here is the call graph for this function:
Here is the caller graph for this function: