aboutsummaryrefslogtreecommitdiff
path: root/src/bench/data.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-01 21:42:22 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-07-02 18:11:15 +0100
commit3d60a03a7cfb2d46b5f10633e9f6a9a36b8cb76f (patch)
treec9331766a3fa5b11dba590a0f968f36472e6a1c0 /src/bench/data.cpp
parent3077f11dadffbc8f2575449fc0177c91a9c3e046 (diff)
bench: Move generated data to a dedicated translation unit
Diffstat (limited to 'src/bench/data.cpp')
-rw-r--r--src/bench/data.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bench/data.cpp b/src/bench/data.cpp
new file mode 100644
index 0000000000..0ae4c7cad4
--- /dev/null
+++ b/src/bench/data.cpp
@@ -0,0 +1,14 @@
+// Copyright (c) 2019 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#include <bench/data.h>
+
+namespace benchmark {
+namespace data {
+
+#include <bench/data/block413567.raw.h>
+const std::vector<uint8_t> block413567{block413567_raw, block413567_raw + sizeof(block413567_raw) / sizeof(block413567_raw[0])};
+
+} // namespace data
+} // namespace benchmark