| 11 | |
| 12 | |
| 13 | static void Base58Encode(benchmark::Bench& bench) |
| 14 | { |
| 15 | static const std::array<unsigned char, 32> buff = { |
| 16 | { |
| 17 | 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147, |
| 18 | 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90, |
| 19 | 200, 24 |
| 20 | } |
| 21 | }; |
| 22 | bench.batch(buff.size()).unit("byte").run([&] { |
| 23 | EncodeBase58(buff); |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | |
| 28 | static void Base58CheckEncode(benchmark::Bench& bench) |
nothing calls this directly
no test coverage detected