mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 14:37:42 -03:00
[doc] Amend notes on benchmarking
This commit is contained in:
parent
89720b7a1b
commit
e94c9d1712
1 changed files with 23 additions and 6 deletions
|
@ -47,12 +47,29 @@ or using a regex filter to only run certain benchmarks.
|
||||||
|
|
||||||
Notes
|
Notes
|
||||||
---------------------
|
---------------------
|
||||||
More benchmarks are needed for, in no particular order:
|
|
||||||
- Script Validation
|
Benchmarks help with monitoring for performance regressions and can act as a
|
||||||
- Coins database
|
scope for future performance improvements. They should cover components that
|
||||||
- Memory pool
|
impact performance critical functions of the system. Functions are performance
|
||||||
- Cuckoo Cache
|
critical if their performance impacts users and the cost associated with a
|
||||||
- P2P throughput
|
degradation in performance is high. A non-exhaustive list:
|
||||||
|
|
||||||
|
- Initial block download (Cost: slow IBD results in full node operation being
|
||||||
|
less accessible)
|
||||||
|
- Block template creation (Cost: slow block template creation may result in
|
||||||
|
lower fee revenue for miners)
|
||||||
|
- Block propagation (Cost: slow block propagation may increase the rate of
|
||||||
|
orphaned blocks and mining centralization)
|
||||||
|
|
||||||
|
A change aiming to improve the performance may be rejected when a clear
|
||||||
|
end-to-end performance improvement cannot be demonstrated. The change might
|
||||||
|
also be rejected if the code bloat or review/maintenance burden is too high to
|
||||||
|
justify the improvement.
|
||||||
|
|
||||||
|
Benchmarks are ill-suited for testing denial-of-service issues as they are
|
||||||
|
restricted to the same input set (introducing bias). [Fuzz
|
||||||
|
tests](/doc/fuzzing.md) are better suited for this purpose, as they are
|
||||||
|
specifically aimed at exploring the possible input space.
|
||||||
|
|
||||||
Going Further
|
Going Further
|
||||||
--------------------
|
--------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue