Changeset View
Changeset View
Standalone View
Standalone View
doc/benchmarking.md
Benchmarking | Benchmarking | ||||
============ | ============ | ||||
Bitcoin ABC has an internal benchmarking framework, with benchmarks | Bitcoin ABC has an internal benchmarking framework, with benchmarks | ||||
for cryptographic algorithms (e.g. SHA1, SHA256, SHA512, RIPEMD160), | for cryptographic algorithms (e.g. SHA1, SHA256, SHA512, RIPEMD160), | ||||
as well as the rolling bloom filter, address encoding and decoding, | as well as the rolling bloom filter, address encoding and decoding, | ||||
CCoinsCaching, memory pool eviction, and wallet coin selection. | CCoinsCaching, memory pool eviction, and wallet coin selection. | ||||
After compiling bitcoin-abc, the benchmarks can be run with: | After compiling bitcoin-abc, the benchmarks can be run with: | ||||
`src/bench/bench_bitcoin` | `src/bench/bitcoin-bench` | ||||
The output will look similar to: | The output will look similar to: | ||||
``` | ``` | ||||
# Benchmark, evals, iterations, total, min, max, median | # Benchmark, evals, iterations, total, min, max, median | ||||
Base58CheckEncode, 5, 320000, 5.28577, 3.27814e-06, 3.36971e-06, 3.29183e-06 | Base58CheckEncode, 5, 320000, 5.28577, 3.27814e-06, 3.36971e-06, 3.29183e-06 | ||||
Base58Decode, 5, 800000, 4.71472, 1.16438e-06, 1.20043e-06, 1.17352e-06 | Base58Decode, 5, 800000, 4.71472, 1.16438e-06, 1.20043e-06, 1.17352e-06 | ||||
Base58Encode, 5, 470000, 4.80062, 2.03992e-06, 2.04861e-06, 2.04084e-06 | Base58Encode, 5, 470000, 4.80062, 2.03992e-06, 2.04861e-06, 2.04084e-06 | ||||
BenchLockedPool, 5, 530, 5.08076, 0.00189861, 0.00193961, 0.00191404 | BenchLockedPool, 5, 530, 5.08076, 0.00189861, 0.00193961, 0.00191404 | ||||
Show All 35 Lines |