Changeset View
Changeset View
Standalone View
Standalone View
src/bench/base58.cpp
// Copyright (c) 2016 The Bitcoin Core developers | // Copyright (c) 2016 The Bitcoin Core 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 "bench.h" | #include <bench/bench.h> | ||||
#include "base58.h" | #include <base58.h> | ||||
#include "validation.h" | #include <validation.h> | ||||
#include <array> | #include <array> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
static void Base58Encode(benchmark::State &state) { | static void Base58Encode(benchmark::State &state) { | ||||
static const std::vector<uint8_t> buffer = { | static const std::vector<uint8_t> buffer = { | ||||
17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, | 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, | ||||
Show All 28 Lines |