Bitcoin Core  22.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 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)
 
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 (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)
 
 BENCHMARK (MuHash)
 
 BENCHMARK (MuHashMul)
 
 BENCHMARK (MuHashDiv)
 
 BENCHMARK (MuHashPrecompute)
 

Variables

static const uint64_t BUFFER_SIZE = 1000*1000
 

Function Documentation

◆ BENCHMARK() [1/14]

BENCHMARK ( FastRandom_1bit  )

◆ BENCHMARK() [2/14]

BENCHMARK ( FastRandom_32bit  )

◆ BENCHMARK() [3/14]

BENCHMARK ( MuHash  )

◆ BENCHMARK() [4/14]

BENCHMARK ( MuHashDiv  )

◆ BENCHMARK() [5/14]

BENCHMARK ( MuHashMul  )

◆ BENCHMARK() [6/14]

BENCHMARK ( MuHashPrecompute  )

◆ BENCHMARK() [7/14]

BENCHMARK ( RIPEMD160  )

◆ BENCHMARK() [8/14]

BENCHMARK ( SHA1  )

◆ BENCHMARK() [9/14]

BENCHMARK ( SHA256  )

◆ BENCHMARK() [10/14]

BENCHMARK ( SHA256_32b  )

◆ BENCHMARK() [11/14]

BENCHMARK ( SHA256D64_1024  )

◆ BENCHMARK() [12/14]

BENCHMARK ( SHA3_256_1M  )

◆ BENCHMARK() [13/14]

BENCHMARK ( SHA512  )

◆ BENCHMARK() [14/14]

BENCHMARK ( SipHash_32b  )

◆ 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 146 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ RIPEMD160()

static void RIPEMD160 ( benchmark::Bench bench)
static

Definition at line 21 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.