dash/src/bench
PastaPastaPasta 83726d286e
Merge #11517: Tests: Improve benchmark precision (#3620)
* Merge #11517: Tests: Improve benchmark precision

760af84 Removed CCheckQueueSpeed benchmark (Martin Ankerl)
00721e6 Improved microbenchmarking with multiple features. (Martin Ankerl)

Pull request description:

  The benchmark's KeepRunning() used to make a function call for each call, inflating measurement times for short running code. This change inlines the critical code that is executed each run and moves the slow timer updates into a new function.

  This change increases the average runtime for Trig from 0.000000082339208 sec to 0.000000080948591.

Tree-SHA512: 36b3bc55fc9b1d4cbf526b7103af6af18e9783e6b8f3ad3adbd09fac0bf9401cfefad58fd1e6fa2615d3c4e677998f912f3323d61d7b00b1c660d581c257d577
Signed-off-by: pasta <pasta@dashboost.org>

# Conflicts:
#	src/bench/bench.cpp
#	src/bench/bench_dash.cpp
#	src/bench/crypto_hash.cpp
#	src/bench/prevector_destructor.cpp
#	src/bench/verify_script.cpp

* More of 11517

Co-authored-by: Wladimir J. van der Laan <laanwj@gmail.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
2020-07-20 18:03:57 +03:00
..
data Fix DeserializeAndCheckBlockTest benchmark and store hashDevnetGenesisBlock in consensus (#1888) 2018-02-01 20:05:35 +03:00
.gitignore more bitcoin->dash 2016-03-04 12:09:03 +03:00
base58.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
bench_dash.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
bench.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
bench.h Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
bls_dkg.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
bls.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
ccoins_caching.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
chacha20.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
chacha_poly_aead.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
checkblock.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
checkqueue.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
coin_selection.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
crypto_hash.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
ecdsa.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
examples.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
gcs_filter.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
lockedpool.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
mempool_eviction.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
merkle_root.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
perf.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
perf.h Merge #12757: Clarify include guard naming convention 2020-07-19 00:42:54 -05:00
poly1305.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
prevector.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
rollingbloom.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
string_cast.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00
util_time.cpp Merge #11517: Tests: Improve benchmark precision (#3620) 2020-07-20 18:03:57 +03:00