Changeset View
Changeset View
Standalone View
Standalone View
src/bench/cashaddr.cpp
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "cashaddr.h" | #include <bench/bench.h> | ||||
#include "bench.h" | #include <cashaddr.h> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
static void CashAddrEncode(benchmark::State &state) { | static void CashAddrEncode(benchmark::State &state) { | ||||
std::vector<uint8_t> buffer = {17, 79, 8, 99, 150, 189, 208, 162, | std::vector<uint8_t> buffer = {17, 79, 8, 99, 150, 189, 208, 162, | ||||
22, 23, 203, 163, 36, 58, 147, 227, | 22, 23, 203, 163, 36, 58, 147, 227, | ||||
139, 2, 215, 100, 91, 38, 11, 141, | 139, 2, 215, 100, 91, 38, 11, 141, | ||||
Show All 18 Lines |