Bitcoin
Functions | Variables
chacha20.cpp File Reference
#include <iostream>
#include <bench/bench.h>
#include <crypto/chacha20.h>

Functions

static void CHACHA20 (benchmark::State &state, size_t buffersize)
 
static void CHACHA20_64BYTES (benchmark::State &state)
 
static void CHACHA20_256BYTES (benchmark::State &state)
 
static void CHACHA20_1MB (benchmark::State &state)
 
 BENCHMARK (CHACHA20_64BYTES, 500000)
 
 BENCHMARK (CHACHA20_256BYTES, 250000)
 
 BENCHMARK (CHACHA20_1MB, 340)
 

Variables

static const uint64_t BUFFER_SIZE_TINY = 64
 
static const uint64_t BUFFER_SIZE_SMALL = 256
 
static const uint64_t BUFFER_SIZE_LARGE = 1024*1024
 

Function Documentation

◆ BENCHMARK() [1/3]

BENCHMARK ( CHACHA20_64BYTES  ,
500000   
)

◆ BENCHMARK() [2/3]

BENCHMARK ( CHACHA20_256BYTES  ,
250000   
)

◆ BENCHMARK() [3/3]

BENCHMARK ( CHACHA20_1MB  ,
340   
)

◆ CHACHA20()

static void CHACHA20 ( benchmark::State state,
size_t  buffersize 
)
static

◆ CHACHA20_1MB()

static void CHACHA20_1MB ( benchmark::State state)
static

◆ CHACHA20_256BYTES()

static void CHACHA20_256BYTES ( benchmark::State state)
static

◆ CHACHA20_64BYTES()

static void CHACHA20_64BYTES ( benchmark::State state)
static

Variable Documentation

◆ BUFFER_SIZE_LARGE

const uint64_t BUFFER_SIZE_LARGE = 1024*1024
static

◆ BUFFER_SIZE_SMALL

const uint64_t BUFFER_SIZE_SMALL = 256
static

◆ BUFFER_SIZE_TINY

const uint64_t BUFFER_SIZE_TINY = 64
static