Bitcoin Core  24.99.0
P2P Digital Currency
Functions | Variables
crypto_hash.cpp File Reference
#include <bench/bench.h>
#include <crypto/muhash.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 BenchRIPEMD160 (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)
 
static void MuHash (benchmark::Bench &bench)
 
static void MuHashMul (benchmark::Bench &bench)
 
static void MuHashDiv (benchmark::Bench &bench)
 
static void MuHashPrecompute (benchmark::Bench &bench)
 
 BENCHMARK (BenchRIPEMD160, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (SHA1, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (SHA256, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (SHA512, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (SHA3_256_1M, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (SHA256_32b, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (SipHash_32b, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (SHA256D64_1024, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (FastRandom_32bit, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (FastRandom_1bit, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (MuHash, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (MuHashMul, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (MuHashDiv, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (MuHashPrecompute, benchmark::PriorityLevel::HIGH)
 

Variables

static const uint64_t BUFFER_SIZE = 1000*1000
 

Function Documentation

◆ BENCHMARK() [1/14]

◆ BENCHMARK() [2/14]

◆ BENCHMARK() [3/14]

◆ BENCHMARK() [4/14]

BENCHMARK ( MuHash  ,
benchmark::PriorityLevel::HIGH   
)

◆ BENCHMARK() [5/14]

BENCHMARK ( MuHashDiv  ,
benchmark::PriorityLevel::HIGH   
)

◆ BENCHMARK() [6/14]

BENCHMARK ( MuHashMul  ,
benchmark::PriorityLevel::HIGH   
)

◆ BENCHMARK() [7/14]

◆ BENCHMARK() [8/14]

BENCHMARK ( SHA1  ,
benchmark::PriorityLevel::HIGH   
)

◆ BENCHMARK() [9/14]

BENCHMARK ( SHA256  ,
benchmark::PriorityLevel::HIGH   
)

◆ BENCHMARK() [10/14]

◆ BENCHMARK() [11/14]

◆ BENCHMARK() [12/14]

◆ BENCHMARK() [13/14]

BENCHMARK ( SHA512  ,
benchmark::PriorityLevel::HIGH   
)

◆ BENCHMARK() [14/14]

◆ BenchRIPEMD160()

static void BenchRIPEMD160 ( benchmark::Bench bench)
static

Definition at line 21 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ FastRandom_1bit()

static void FastRandom_1bit ( benchmark::Bench bench)
static

Definition at line 101 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ FastRandom_32bit()

static void FastRandom_32bit ( benchmark::Bench bench)
static

Definition at line 93 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHash()

static void MuHash ( benchmark::Bench bench)
static

Definition at line 109 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHashDiv()

static void MuHashDiv ( benchmark::Bench bench)
static

Definition at line 131 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHashMul()

static void MuHashMul ( benchmark::Bench bench)
static

Definition at line 120 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHashPrecompute()

static void MuHashPrecompute ( benchmark::Bench bench)
static

Definition at line 142 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA1()

static void SHA1 ( benchmark::Bench bench)
static

Definition at line 30 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA256()

static void SHA256 ( benchmark::Bench bench)
static

Definition at line 39 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA256_32b()

static void SHA256_32b ( benchmark::Bench bench)
static

Definition at line 57 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA256D64_1024()

static void SHA256D64_1024 ( benchmark::Bench bench)
static

Definition at line 67 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA3_256_1M()

static void SHA3_256_1M ( benchmark::Bench bench)
static

Definition at line 48 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA512()

static void SHA512 ( benchmark::Bench bench)
static

Definition at line 75 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SipHash_32b()

static void SipHash_32b ( benchmark::Bench bench)
static

Definition at line 84 of file crypto_hash.cpp.

Here is the call graph for this function:

Variable Documentation

◆ BUFFER_SIZE

const uint64_t BUFFER_SIZE = 1000*1000
static

Definition at line 19 of file crypto_hash.cpp.