Bitcoin Core  0.20.99
P2P Digital Currency
Functions
bench.c File Reference
#include <stdio.h>
#include <math.h>
#include "sys/time.h"
#include "ctaes.h"
Include dependency graph for bench.c:

Go to the source code of this file.

Functions

static double gettimedouble (void)
 
static void print_number (double x)
 
static void run_benchmark (char *name, void(*benchmark)(void *), void(*setup)(void *), void(*teardown)(void *), void *data, int count, int iter)
 
static void bench_AES128_init (void *data)
 
static void bench_AES128_encrypt_setup (void *data)
 
static void bench_AES128_encrypt (void *data)
 
static void bench_AES128_decrypt (void *data)
 
static void bench_AES192_init (void *data)
 
static void bench_AES192_encrypt_setup (void *data)
 
static void bench_AES192_encrypt (void *data)
 
static void bench_AES192_decrypt (void *data)
 
static void bench_AES256_init (void *data)
 
static void bench_AES256_encrypt_setup (void *data)
 
static void bench_AES256_encrypt (void *data)
 
static void bench_AES256_decrypt (void *data)
 
int main (void)
 

Function Documentation

◆ bench_AES128_decrypt()

static void bench_AES128_decrypt ( void *  data)
static

Definition at line 82 of file bench.c.

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

◆ bench_AES128_encrypt()

static void bench_AES128_encrypt ( void *  data)
static

Definition at line 73 of file bench.c.

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

◆ bench_AES128_encrypt_setup()

static void bench_AES128_encrypt_setup ( void *  data)
static

Definition at line 67 of file bench.c.

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

◆ bench_AES128_init()

static void bench_AES128_init ( void *  data)
static

Definition at line 59 of file bench.c.

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

◆ bench_AES192_decrypt()

static void bench_AES192_decrypt ( void *  data)
static

Definition at line 114 of file bench.c.

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

◆ bench_AES192_encrypt()

static void bench_AES192_encrypt ( void *  data)
static

Definition at line 105 of file bench.c.

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

◆ bench_AES192_encrypt_setup()

static void bench_AES192_encrypt_setup ( void *  data)
static

Definition at line 99 of file bench.c.

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

◆ bench_AES192_init()

static void bench_AES192_init ( void *  data)
static

Definition at line 91 of file bench.c.

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

◆ bench_AES256_decrypt()

static void bench_AES256_decrypt ( void *  data)
static

Definition at line 147 of file bench.c.

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

◆ bench_AES256_encrypt()

static void bench_AES256_encrypt ( void *  data)
static

Definition at line 138 of file bench.c.

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

◆ bench_AES256_encrypt_setup()

static void bench_AES256_encrypt_setup ( void *  data)
static

Definition at line 132 of file bench.c.

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

◆ bench_AES256_init()

static void bench_AES256_init ( void *  data)
static

Definition at line 123 of file bench.c.

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

◆ gettimedouble()

static double gettimedouble ( void  )
static

Definition at line 7 of file bench.c.

Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 156 of file bench.c.

Here is the call graph for this function:

◆ print_number()

static void print_number ( double  x)
static

Definition at line 13 of file bench.c.

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 *)  benchmark,
void(*)(void *)  setup,
void(*)(void *)  teardown,
void *  data,
int  count,
int  iter 
)
static

Definition at line 26 of file bench.c.

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