MCPcopy Create free account
hub / github.com/ElementsProject/elements / HASH

Function HASH

src/bench/chacha_poly_aead.cpp:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92// Add Hash() (dbl-sha256) bench for comparison
93
94static void HASH(benchmark::Bench& bench, size_t buffersize)
95{
96 uint8_t hash[CHash256::OUTPUT_SIZE];
97 std::vector<uint8_t> in(buffersize,0);
98 bench.batch(in.size()).unit("byte").run([&] {
99 CHash256().Write(in).Finalize(hash);
100 });
101}
102
103static void HASH_64BYTES(benchmark::Bench& bench)
104{

Callers 3

HASH_64BYTESFunction · 0.70
HASH_256BYTESFunction · 0.70
HASH_1MBFunction · 0.70

Calls 6

CHash256Class · 0.85
runMethod · 0.45
batchMethod · 0.45
sizeMethod · 0.45
FinalizeMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected