dash/src/bench
MarcoFalke d96983a327
Merge bitcoin/bitcoin#24306: util: Make ArgsManager::GetPathArg more widely usable
60aa179d8f9a675efa2d78eaadc09e3ba450f50f Use GetPathArg where possible (Pavol Rusnak)
5b946edd73640c6ecdfb4cbac1d4351e634678dc util, refactor: Use GetPathArg to read "-settings" value (Ryan Ofsky)
687e655ae2970f2f13aca0267c7de86dc69be763 util: Add GetPathArg default path argument (Ryan Ofsky)

Pull request description:

  Improve `ArgsManager::GetPathArg` method added in recent PR #24265, so it is usable more places. This PR starts to use it for the `-settings` option. This can also be helpful for #24274 which is parsing more path options.

  - Add `GetPathArg` default argument so it is less awkward to use to parse options that have default values.
  - Fix `GetPathArg` negated argument handling. Return path{} not path{"0"} when path argument is negated.
  - Add unit tests for default and negated cases
  - Move `GetPathArg` method declaration next to `GetArg` declaration. The two methods are close substitutes for each, so this should help keep them consistent and make them more discoverable.

ACKs for top commit:
  w0xlt:
    Tested ACK 60aa179 on Ubuntu 21.10
  hebasto:
    re-ACK 60aa179d8f9a675efa2d78eaadc09e3ba450f50f

Tree-SHA512: 3d24b885d8bbeef39ea5d0556e2f09b9e5f4a21179cef11cbbbc1b84da29c8fb66ba698889054ce28d80bc25926687654c8532ed46054bf5b2dd1837866bd1cd
2024-11-17 17:49:05 -06:00
..
data
.gitignore
addrman.cpp merge bitcoin#26261: cleanup LookupIntern, Lookup and LookupHost 2024-09-11 18:34:06 +00:00
base58.cpp Merge #20813: scripted-diff: Bump copyright headers 2024-04-10 03:19:34 +07:00
bech32.cpp Merge #18673: scripted-diff: Sort test includes 2023-08-29 22:00:59 -05:00
bench_bitcoin.cpp Merge bitcoin/bitcoin#24306: util: Make ArgsManager::GetPathArg more widely usable 2024-11-17 17:49:05 -06:00
bench.cpp Merge bitcoin/bitcoin#23025: bench: update nanobench add -min_time 2024-09-25 10:18:12 +05:30
bench.h Merge bitcoin/bitcoin#23025: bench: update nanobench add -min_time 2024-09-25 10:18:12 +05:30
bip324_ecdh.cpp merge bitcoin#27479: BIP324: ElligatorSwift integrations 2023-11-21 07:59:03 -06:00
block_assemble.cpp fix: avoid mandatory-script-verify-flag-failed crash in bench test 2024-10-15 06:58:51 +00:00
bls_dkg.cpp non-scripted-diff: bump copyright year to 2023 2024-02-24 11:05:37 -06:00
bls.cpp non-scripted-diff: bump copyright year to 2023 2024-02-24 11:05:37 -06:00
ccoins_caching.cpp partial bitcoin#26691: Update secp256k1 subtree to libsecp256k1 version 0.2.0 2023-11-21 07:59:03 -06:00
chacha20.cpp Merge #20813: scripted-diff: Bump copyright headers 2024-04-10 03:19:34 +07:00
checkblock.cpp merge bitcoin#23438: Use spans of std::byte in serialize 2024-02-28 13:37:34 -06:00
checkqueue.cpp Merge #19710: bench: Prevent thread oversubscription and decreases the variance of result values 2024-01-22 19:44:36 -06:00
coin_selection.cpp Merge #21083: wallet: Avoid requesting fee rates multiple times during coin selection 2024-09-23 02:13:14 +07:00
crypto_hash.cpp refactor: segregate x11 hashing 2024-10-04 14:57:07 -05:00
data.cpp
data.h
duplicate_inputs.cpp merge bitcoin#21866: Farewell, global Chainstate! 2024-06-26 13:50:50 +00:00
ecdsa.cpp non-scripted-diff: bump copyright year to 2023 2024-02-24 11:05:37 -06:00
ellswift.cpp merge bitcoin#27479: BIP324: ElligatorSwift integrations 2023-11-21 07:59:03 -06:00
examples.cpp Merge #18673: scripted-diff: Sort test includes 2023-08-29 22:00:59 -05:00
gcs_filter.cpp merge bitcoin#24832: Verify the block filter hash when reading the filter from disk 2024-10-15 06:58:51 +00:00
hashpadding.cpp
load_external.cpp merge bitcoin#16981: Improve runtime performance of --reindex 2024-10-15 06:58:52 +00:00
lockedpool.cpp Merge #20813: scripted-diff: Bump copyright headers 2024-04-10 03:19:34 +07:00
mempool_eviction.cpp Merge #20813: scripted-diff: Bump copyright headers 2024-04-10 03:19:34 +07:00
mempool_stress.cpp merge bitcoin#23157: improve performance of check() and remove dependency on validation 2024-10-05 17:10:02 +00:00
merkle_root.cpp Merge #18673: scripted-diff: Sort test includes 2023-08-29 22:00:59 -05:00
nanobench.cpp
nanobench.h Merge bitcoin/bitcoin#28877: bench: Update nanobench to 4.3.11 2024-10-25 09:08:29 -05:00
peer_eviction.cpp Merge bitcoin/bitcoin#23025: bench: update nanobench add -min_time 2024-09-25 10:18:12 +05:30
poly1305.cpp Merge #20813: scripted-diff: Bump copyright headers 2024-04-10 03:19:34 +07:00
pool.cpp Merge bitcoin/bitcoin#28913: coins: make sure PoolAllocator uses the correct alignment 2024-10-23 22:19:56 -05:00
prevector.cpp Merge #20813: scripted-diff: Bump copyright headers 2024-04-10 03:19:34 +07:00
rollingbloom.cpp Merge bitcoin/bitcoin#24784: refactor: deduplicate integer serialization in RollingBloom benchmark 2024-10-29 13:01:23 -05:00
rpc_blockchain.cpp merge bitcoin#24909: Move and rename pindexBestHeader, fHavePruned 2024-08-09 17:34:39 +07:00
rpc_mempool.cpp (partial) Merge bitcoin/bitcoin#22981: doc: Fix incorrect C++ named args 2024-09-12 18:57:30 +05:30
strencodings.cpp Merge bitcoin/bitcoin#24852: util: optimize HexStr 2024-10-15 09:25:09 -05:00
string_cast.cpp chore: run contrib/devtools/copyright_header.py update . 2024-10-05 23:17:41 +03:00
util_time.cpp Merge #20813: scripted-diff: Bump copyright headers 2024-04-10 03:19:34 +07:00
verify_script.cpp Merge #18673: scripted-diff: Sort test includes 2023-08-29 22:00:59 -05:00
wallet_balance.cpp Merge bitcoin/bitcoin#20773: refactor: split CWallet::Create 2024-08-12 20:38:05 +07:00