1 // Copyright (c) 2015-2017 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #include <bench/bench.h>
8 static void PrevectorDestructor(benchmark::State
& state
)
10 while (state
.KeepRunning()) {
11 for (auto x
= 0; x
< 1000; ++x
) {
12 prevector
<28, unsigned char> t0
;
13 prevector
<28, unsigned char> t1
;
20 static void PrevectorClear(benchmark::State
& state
)
23 while (state
.KeepRunning()) {
24 for (auto x
= 0; x
< 1000; ++x
) {
25 prevector
<28, unsigned char> t0
;
26 prevector
<28, unsigned char> t1
;
35 BENCHMARK(PrevectorDestructor
);
36 BENCHMARK(PrevectorClear
);