Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Functions | Variables
crypto_hash.cpp File Reference
#include <bench/bench.h>
#include <crypto/ripemd160.h>
#include <crypto/sha1.h>
#include <crypto/sha256.h>
#include <crypto/sha3.h>
#include <crypto/sha512.h>
#include <crypto/siphash.h>
#include <hash.h>
#include <random.h>
#include <uint256.h>
Include dependency graph for crypto_hash.cpp:

Go to the source code of this file.

Functions

static void RIPEMD160 (benchmark::Bench &bench)
 
static void SHA1 (benchmark::Bench &bench)
 
static void SHA256 (benchmark::Bench &bench)
 
static void SHA3_256_1M (benchmark::Bench &bench)
 
static void SHA256_32b (benchmark::Bench &bench)
 
static void SHA256D64_1024 (benchmark::Bench &bench)
 
static void SHA512 (benchmark::Bench &bench)
 
static void SipHash_32b (benchmark::Bench &bench)
 
static void FastRandom_32bit (benchmark::Bench &bench)
 
static void FastRandom_1bit (benchmark::Bench &bench)
 
 BENCHMARK (RIPEMD160)
 
 BENCHMARK (SHA1)
 
 BENCHMARK (SHA256)
 
 BENCHMARK (SHA512)
 
 BENCHMARK (SHA3_256_1M)
 
 BENCHMARK (SHA256_32b)
 
 BENCHMARK (SipHash_32b)
 
 BENCHMARK (SHA256D64_1024)
 
 BENCHMARK (FastRandom_32bit)
 
 BENCHMARK (FastRandom_1bit)
 

Variables

static const uint64_t BUFFER_SIZE = 1000*1000
 

Function Documentation

BENCHMARK ( RIPEMD160  )
BENCHMARK ( SHA1  )
BENCHMARK ( SHA256  )
BENCHMARK ( SHA512  )
BENCHMARK ( SHA3_256_1M  )
BENCHMARK ( SHA256_32b  )
BENCHMARK ( SipHash_32b  )
BENCHMARK ( SHA256D64_1024  )
BENCHMARK ( FastRandom_32bit  )
BENCHMARK ( FastRandom_1bit  )
static void FastRandom_1bit ( benchmark::Bench bench)
static

Definition at line 100 of file crypto_hash.cpp.

Here is the call graph for this function:

static void FastRandom_32bit ( benchmark::Bench bench)
static

Definition at line 92 of file crypto_hash.cpp.

Here is the call graph for this function:

static void RIPEMD160 ( benchmark::Bench bench)
static

Definition at line 20 of file crypto_hash.cpp.

Here is the call graph for this function:

static void SHA1 ( benchmark::Bench bench)
static

Definition at line 29 of file crypto_hash.cpp.

Here is the call graph for this function:

static void SHA256 ( benchmark::Bench bench)
static

Definition at line 38 of file crypto_hash.cpp.

Here is the call graph for this function:

static void SHA256_32b ( benchmark::Bench bench)
static

Definition at line 56 of file crypto_hash.cpp.

Here is the call graph for this function:

static void SHA256D64_1024 ( benchmark::Bench bench)
static

Definition at line 66 of file crypto_hash.cpp.

Here is the call graph for this function:

static void SHA3_256_1M ( benchmark::Bench bench)
static

Definition at line 47 of file crypto_hash.cpp.

Here is the call graph for this function:

static void SHA512 ( benchmark::Bench bench)
static

Definition at line 74 of file crypto_hash.cpp.

Here is the call graph for this function:

static void SipHash_32b ( benchmark::Bench bench)
static

Definition at line 83 of file crypto_hash.cpp.

Here is the call graph for this function:

Variable Documentation

const uint64_t BUFFER_SIZE = 1000*1000
static

Definition at line 18 of file crypto_hash.cpp.