diff options
| author | Martin Ankerl <[email protected]> | 2017-10-17 16:48:02 +0200 |
|---|---|---|
| committer | Martin Ankerl <[email protected]> | 2017-12-23 11:03:17 +0100 |
| commit | 00721e69f8280f8bc59bede43b335ecc347d4fdf (patch) | |
| tree | 950b08aebdfa195a4f166664dd9934164d2edf59 /src/bench/base58.cpp | |
| parent | Merge #11726: Cleanups + nit fixes for walletdir PR (diff) | |
| download | discoin-00721e69f8280f8bc59bede43b335ecc347d4fdf.tar.xz discoin-00721e69f8280f8bc59bede43b335ecc347d4fdf.zip | |
Improved microbenchmarking with multiple features.
* inline performance critical code
* Average runtime is specified and used to calculate iterations.
* Console: show median of multiple runs
* plot: show box plot
* filter benchmarks
* specify scaling factor
* ignore src/test and src/bench in command line check script
* number of iterations instead of time
* Replaced runtime in BENCHMARK makro number of iterations.
* Added -? to bench_bitcoin
* Benchmark plotly.js URL, width, height can be customized
* Fixed incorrect precision warning
Diffstat (limited to 'src/bench/base58.cpp')
| -rw-r--r-- | src/bench/base58.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bench/base58.cpp b/src/bench/base58.cpp index 2d9a9f290..294fcc3c3 100644 --- a/src/bench/base58.cpp +++ b/src/bench/base58.cpp @@ -54,6 +54,6 @@ static void Base58Decode(benchmark::State& state) } -BENCHMARK(Base58Encode); -BENCHMARK(Base58CheckEncode); -BENCHMARK(Base58Decode); +BENCHMARK(Base58Encode, 470 * 1000); +BENCHMARK(Base58CheckEncode, 320 * 1000); +BENCHMARK(Base58Decode, 800 * 1000); |