dogecoin/src/bench
Wladimir J. van der Laan 29c53289a9 bench: Fix initialization order in registration
The initialization order of global data structures in different
implementation units is undefined. Making use of this is essentially
gambling on what the linker does, the so-called [Static initialization
order fiasco](https://isocpp.org/wiki/faq/ctors#static-init-order).

In this case it apparently worked on Linux but failed on OpenBSD and
FreeBSD.

To create it on first use, make the registration structure local to
a function.

Fixes #8910.
2017-02-07 19:07:29 +01:00
..
data Add deserialize + CheckBlock benchmarks, and a full block hex 2016-11-09 11:27:59 -08:00
.gitignore Ignore bench_bitcoin binary. 2015-10-06 17:46:12 +02:00
base58.cpp Rename the remaining main.{h,cpp} to validation.{h,cpp} 2016-12-02 09:42:51 -08:00
bench.cpp bench: Fix initialization order in registration 2017-02-07 19:07:29 +01:00
bench.h bench: Fix initialization order in registration 2017-02-07 19:07:29 +01:00
bench_bitcoin.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
ccoins_caching.cpp Add microbenchmarks to profile more code paths. 2016-10-18 21:59:05 +02:00
checkblock.cpp Rename the remaining main.{h,cpp} to validation.{h,cpp} 2016-12-02 09:42:51 -08:00
checkqueue.cpp Address ryanofsky feedback on CCheckQueue benchmarks. Eliminated magic numbers, fixed scoping of vectors (and memory movement component of benchmark). 2017-01-11 17:05:06 -05:00
coin_selection.cpp Merge #9281: Refactor: Remove using namespace <xxx> from bench/ & test/ sources 2017-01-05 11:32:05 +01:00
crypto_hash.cpp Refactor: Removed begin/end_ptr functions. 2016-12-09 13:15:19 +09:00
Examples.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
lockedpool.cpp bench: Add benchmark for lockedpool allocation/deallocation 2016-10-27 13:17:26 +02:00
mempool_eviction.cpp Remove member variable hadNoDependencies from CTxMemPoolEntry 2017-01-04 12:09:33 -05:00
perf.cpp [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
perf.h bench: Add support for measuring CPU cycles 2016-11-22 12:20:57 +01:00
rollingbloom.cpp Benchmark rolling bloom filter 2016-04-28 14:56:32 +02:00
verify_script.cpp Merge #9353: Add data() method to CDataStream (and use it) 2017-01-09 08:47:47 -08:00