0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-04 10:07:27 -05:00
bitcoin-bitcoin-core/src/bench
Andrew Chow fabc031048
Merge bitcoin/bitcoin#26158: bench: add "priority level" to the benchmark framework
3e9d0bea8d build: only run high priority benchmarks in 'make check' (furszy)
466b54bd4a bench: surround main() execution with try/catch (furszy)
3da7cd2a76 bench: explicitly make all current benchmarks "high" priority (furszy)
05b8c76232 bench: add "priority level" to the benchmark framework (furszy)
f1593780b8 bench: place benchmark implementation inside benchmark namespace (furszy)

Pull request description:

  This is from today's meeting, a simple "priority level" for the benchmark framework.

  Will allow us to run certain benchmarks while skip non-prioritized ones in `make check`.

  By default, `bench_bitcoin` will run all the benchmarks. `make check`will only run the high priority ones,
  and have marked all the existent benchmarks as "high priority" to retain the current behavior.

  Could test it by modifying any benchmark priority to something different from "high", and
  run `bench_bitcoin -priority-level=high` and/or `bench_bitcoin -priority-level=medium,low`
  (the first command will skip the modified bench while the second one will include it).

  Note: the second commit could be avoided by having a default arg value for the priority
  level but.. an explicit set in every `BENCHMARK` macro call makes it less error-prone.

ACKs for top commit:
  kouloumos:
    re-ACK 3e9d0bea8d
  achow101:
    ACK 3e9d0bea8d
  theStack:
    re-ACK 3e9d0bea8d
  stickies-v:
    re-ACK 3e9d0bea8d

Tree-SHA512: ece59bf424c5fc1db335f84caa507476fb8ad8c6151880f1f8289562e17023aae5b5e7de03e8cbba6337bf09215f9be331e9ef51c791c43bce43f7446813b054
2022-10-20 11:05:03 -04:00
..
data Add deserialize + CheckBlock benchmarks, and a full block hex 2016-11-09 11:27:59 -08:00
.gitignore Ignore bench_bitcoin binary. 2015-10-06 17:46:12 +02:00
addrman.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
base58.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
bech32.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
bench.cpp bench: add "priority level" to the benchmark framework 2022-10-20 10:21:04 -03:00
bench.h bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
bench_bitcoin.cpp bench: surround main() execution with try/catch 2022-10-20 10:21:04 -03:00
block_assemble.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
ccoins_caching.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
chacha20.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
chacha_poly_aead.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
checkblock.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
checkqueue.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
coin_selection.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
crypto_hash.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
data.cpp scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
data.h bench: Move generated data to a dedicated translation unit 2019-07-02 18:11:15 +01:00
descriptors.cpp Merge bitcoin/bitcoin#26158: bench: add "priority level" to the benchmark framework 2022-10-20 11:05:03 -04:00
duplicate_inputs.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
examples.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
gcs_filter.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
hashpadding.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
lockedpool.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
logging.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
mempool_eviction.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
mempool_stress.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
merkle_root.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
nanobench.cpp Replace current benchmarking framework with nanobench 2020-06-13 12:24:18 +02:00
nanobench.h Fix issues identified by codespell 2.2.1 and update ignored words 2022-09-15 13:03:40 +02:00
peer_eviction.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
poly1305.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
prevector.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
rollingbloom.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
rpc_blockchain.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
rpc_mempool.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
strencodings.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
util_time.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
verify_script.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
wallet_balance.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00
wallet_loading.cpp bench: explicitly make all current benchmarks "high" priority 2022-10-20 10:21:04 -03:00