Bitcoin Core  0.20.99
P2P Digital Currency
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/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::State &state)
 
static void SHA1 (benchmark::State &state)
 
static void SHA256 (benchmark::State &state)
 
static void SHA256_32b (benchmark::State &state)
 
static void SHA256D64_1024 (benchmark::State &state)
 
static void SHA512 (benchmark::State &state)
 
static void SipHash_32b (benchmark::State &state)
 
static void FastRandom_32bit (benchmark::State &state)
 
static void FastRandom_1bit (benchmark::State &state)
 
 BENCHMARK (RIPEMD160, 440)
 
 BENCHMARK (SHA1, 570)
 
 BENCHMARK (SHA256, 340)
 
 BENCHMARK (SHA512, 330)
 
 BENCHMARK (SHA256_32b, 4700 *1000)
 
 BENCHMARK (SipHash_32b, 40 *1000 *1000)
 
 BENCHMARK (SHA256D64_1024, 7400)
 
 BENCHMARK (FastRandom_32bit, 110 *1000 *1000)
 
 BENCHMARK (FastRandom_1bit, 440 *1000 *1000)
 

Variables

static const uint64_t BUFFER_SIZE = 1000*1000
 

Function Documentation

◆ BENCHMARK() [1/9]

BENCHMARK ( RIPEMD160  ,
440   
)
Here is the caller graph for this function:

◆ BENCHMARK() [2/9]

BENCHMARK ( SHA1  ,
570   
)

◆ BENCHMARK() [3/9]

BENCHMARK ( SHA256  ,
340   
)

◆ BENCHMARK() [4/9]

BENCHMARK ( SHA512  ,
330   
)

◆ BENCHMARK() [5/9]

BENCHMARK ( SHA256_32b  ,
4700 *  1000 
)

◆ BENCHMARK() [6/9]

BENCHMARK ( SipHash_32b  ,
40 *1000 *  1000 
)

◆ BENCHMARK() [7/9]

BENCHMARK ( SHA256D64_1024  ,
7400   
)

◆ BENCHMARK() [8/9]

BENCHMARK ( FastRandom_32bit  ,
110 *1000 *  1000 
)

◆ BENCHMARK() [9/9]

BENCHMARK ( FastRandom_1bit  ,
440 *1000 *  1000 
)

◆ FastRandom_1bit()

static void FastRandom_1bit ( benchmark::State state)
static

Definition at line 86 of file crypto_hash.cpp.

Here is the call graph for this function:

◆ FastRandom_32bit()

static void FastRandom_32bit ( benchmark::State state)
static

Definition at line 78 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RIPEMD160()

static void RIPEMD160 ( benchmark::State state)
static

Definition at line 19 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA1()

static void SHA1 ( benchmark::State state)
static

Definition at line 27 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA256()

static void SHA256 ( benchmark::State state)
static

Definition at line 35 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA256_32b()

static void SHA256_32b ( benchmark::State state)
static

Definition at line 43 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA256D64_1024()

static void SHA256D64_1024 ( benchmark::State state)
static

Definition at line 53 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SHA512()

static void SHA512 ( benchmark::State state)
static

Definition at line 61 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SipHash_32b()

static void SipHash_32b ( benchmark::State state)
static

Definition at line 69 of file crypto_hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BUFFER_SIZE

const uint64_t BUFFER_SIZE = 1000*1000
static

Definition at line 17 of file crypto_hash.cpp.