Bitcoin
|
#include <iostream>
#include <bench/bench.h>
#include <hash.h>
#include <random.h>
#include <uint256.h>
#include <crypto/ripemd160.h>
#include <crypto/sha1.h>
#include <crypto/sha256.h>
#include <crypto/sha512.h>
#include <crypto/siphash.h>
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 |
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 | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |