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

Function Base58Encode

src/bench/base58.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15static void Base58Encode(benchmark::State& state)
16{
17 static const std::array<unsigned char, 32> buff = {
18 {
19 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
20 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
21 200, 24
22 }
23 };
24 while (state.KeepRunning()) {
25 EncodeBase58(buff.data(), buff.data() + buff.size());
26 }
27}
28
29
30static void Base58CheckEncode(benchmark::State& state)

Callers

nothing calls this directly

Calls 4

EncodeBase58Function · 0.85
KeepRunningMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected