diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2015-09-29 17:17:24 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2015-09-30 09:24:42 -0400 |
commit | 7072c544b52774ac5a22835121e8e2747ad61158 (patch) | |
tree | 61bab3fc434f5c058ef43a73cf2cc3b4fd78661a /src/Makefile.bench.include | |
parent | 535ed9223dcb32bf90ead5b2c95052838b780620 (diff) |
Support very-fast-running benchmarks
Avoid calling gettimeofday every time through the benchmarking loop, by keeping
track of how long each loop takes and doubling the number of iterations done
between time checks when they take less than 1/16'th of the total elapsed time.
Diffstat (limited to 'src/Makefile.bench.include')
-rw-r--r-- | src/Makefile.bench.include | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.bench.include b/src/Makefile.bench.include index 126e3a102f..61fe9e287d 100644 --- a/src/Makefile.bench.include +++ b/src/Makefile.bench.include @@ -7,7 +7,7 @@ bench_bench_bitcoin_SOURCES = \ bench/bench_bitcoin.cpp \ bench/bench.cpp \ bench/bench.h \ - bench/MilliSleep.cpp + bench/Examples.cpp bench_bench_bitcoin_CPPFLAGS = $(BITCOIN_INCLUDES) $(EVENT_CLFAGS) $(EVENT_PTHREADS_CFLAGS) -I$(builddir)/bench/ bench_bench_bitcoin_LDADD = \ |