| 28 | |
| 29 | |
| 30 | static 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 | |
| 47 | static void Base58Decode(benchmark::State& state) |
nothing calls this directly
no test coverage detected