Bitcoin ABC  0.26.3
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 <string>
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 83 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 78 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHash()

static void MuHash ( benchmark::Bench bench)
static

Definition at line 88 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHashDiv()

static void MuHashDiv ( benchmark::Bench bench)
static

Definition at line 106 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHashMul()

static void MuHashMul ( benchmark::Bench bench)
static

Definition at line 98 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ MuHashPrecompute()

static void MuHashPrecompute ( benchmark::Bench bench)
static

Definition at line 114 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ RIPEMD160()

static void RIPEMD160 ( benchmark::Bench bench)
static

Definition at line 22 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA1()

static void SHA1 ( benchmark::Bench bench)
static

Definition at line 29 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA256()

static void SHA256 ( benchmark::Bench bench)
static

Definition at line 36 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 50 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 56 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 43 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ SHA512()

static void SHA512 ( benchmark::Bench bench)
static

Definition at line 62 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 69 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 20 of file crypto_hash.cpp.