| 13 | |
| 14 | |
| 15 | static 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 | |
| 30 | static void Base58CheckEncode(benchmark::State& state) |
nothing calls this directly
no test coverage detected