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

Function Base58Encode

src/bench/base58.cpp:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13static void Base58Encode(benchmark::Bench& bench)
14{
15 static const std::array<unsigned char, 32> buff = {
16 {
17 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
18 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
19 200, 24
20 }
21 };
22 bench.batch(buff.size()).unit("byte").run([&] {
23 EncodeBase58(buff);
24 });
25}
26
27
28static void Base58CheckEncode(benchmark::Bench& bench)

Callers

nothing calls this directly

Calls 4

EncodeBase58Function · 0.85
runMethod · 0.45
batchMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected