MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Base58CheckEncode

Function Base58CheckEncode

src/bench/base58.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29
30static void Base58CheckEncode(benchmark::State& state)
31{
32 static const std::array<unsigned char, 32> buff = {
33 {
34 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
35 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
36 200, 24
37 }
38 };
39 std::vector<unsigned char> vch;
40 vch.assign(buff.begin(), buff.end());
41 while (state.KeepRunning()) {
42 EncodeBase58Check(vch);
43 }
44}
45
46
47static void Base58Decode(benchmark::State& state)

Callers

nothing calls this directly

Calls 5

EncodeBase58CheckFunction · 0.85
KeepRunningMethod · 0.80
assignMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected