Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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()

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()

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()

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()

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()

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()

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()

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()

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()

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()

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()

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()

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()

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()

void print_number ( double x)
static

Definition at line 13 of file bench.c.

Here is the caller graph for this function:

◆ run_benchmark()

void run_benchmark ( char * name,
void(* benchmark )(void *),
void(* setup )(void *),
void(* teardown )(void *),
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: