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

Function Base58CheckEncode

src/bench/base58.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28static void Base58CheckEncode(benchmark::Bench& bench)
29{
30 static const std::array<unsigned char, 32> buff = {
31 {
32 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
33 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
34 200, 24
35 }
36 };
37 bench.batch(buff.size()).unit("byte").run([&] {
38 EncodeBase58Check(buff);
39 });
40}
41
42
43static void Base58Decode(benchmark::Bench& bench)

Callers

nothing calls this directly

Calls 4

EncodeBase58CheckFunction · 0.85
runMethod · 0.45
batchMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected