Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
bench.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "tests_common.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 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 17 of file bench.h.

◆ FP_MULT

#define FP_MULT   (1000000LL)

Definition at line 18 of file bench.h.

Function Documentation

◆ get_iters()

int get_iters ( int default_iters)
static

Definition at line 150 of file bench.h.

Here is the caller graph for this function:

◆ have_flag()

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

Definition at line 112 of file bench.h.

Here is the caller graph for this function:

◆ have_invalid_args()

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

Definition at line 128 of file bench.h.

Here is the caller graph for this function:

◆ print_number()

void print_number ( const int64_t x)
static

Definition at line 21 of file bench.h.

Here is the caller graph for this function:

◆ print_output_table_header_row()

void print_output_table_header_row ( void )
static

Definition at line 165 of file bench.h.

Here is the caller graph for this function:

◆ run_benchmark()

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

Definition at line 78 of file bench.h.

Here is the call graph for this function: