Bitcoin Core 28.99.0
P2P Digital Currency
Macros | Functions
bench.h File Reference
#include <stdlib.h>
#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)
 
static void print_number (const int64_t x)
 
static void run_benchmark (char *name, void(*benchmark)(void *, int), void(*setup)(void *), void(*teardown)(void *, int), void *data, int count, int iter)
 
static int have_flag (int argc, char **argv, char *flag)
 
static int have_invalid_args (int argc, char **argv, char **valid_args, size_t n)
 
static int get_iters (int default_iters)
 
static void print_output_table_header_row (void)
 

Macro Definition Documentation

◆ FP_EXP

#define FP_EXP   (6)

Definition at line 37 of file bench.h.

◆ FP_MULT

#define FP_MULT   (1000000LL)

Definition at line 38 of file bench.h.

Function Documentation

◆ get_iters()

static int get_iters ( int  default_iters)
static

Definition at line 170 of file bench.h.

Here is the caller graph for this function:

◆ gettime_i64()

static int64_t gettime_i64 ( void  )
static

Definition at line 21 of file bench.h.

Here is the caller graph for this function:

◆ have_flag()

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

Definition at line 132 of file bench.h.

Here is the caller graph for this function:

◆ have_invalid_args()

static int have_invalid_args ( int  argc,
char **  argv,
char **  valid_args,
size_t  n 
)
static

Definition at line 148 of file bench.h.

Here is the caller graph for this function:

◆ print_number()

static void print_number ( const int64_t  x)
static

Definition at line 41 of file bench.h.

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

◆ print_output_table_header_row()

static void print_output_table_header_row ( void  )
static

Definition at line 179 of file bench.h.

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

◆ run_benchmark()

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

Definition at line 98 of file bench.h.

Here is the call graph for this function: