bench: Add support for measuring CPU cycles

This adds cycle min/max/avg to the statistics.

Supported on x86 and x86_64 (natively through rdtsc), as well as Linux
(perf syscall).
This commit is contained in:
Wladimir J. van der Laan
2016-11-22 10:22:08 +01:00
parent 55b2eddcc8
commit 3532818746
5 changed files with 121 additions and 5 deletions

View File

@@ -22,7 +22,9 @@ bench_bench_bitcoin_SOURCES = \
bench/mempool_eviction.cpp \
bench/verify_script.cpp \
bench/base58.cpp \
bench/lockedpool.cpp
bench/lockedpool.cpp \
bench/perf.cpp \
bench/perf.h
nodist_bench_bench_bitcoin_SOURCES = $(GENERATED_TEST_FILES)