Improves run-times (4 warmups + 60 runs each):
| test | improvement |
|---|---|
| checkqueue_tests | 1.12 |
| merkle_tests | 1.14 |
| orphanage_tests | 1.48 |
| prevector_tests | 1.07 |
| rbf_tests | 1.01 |
| validation_tests | 1.60 |
Removed overhead is barely measurable on full test suite runtime sequential test_bitcoinor parallel ctest --test-dir build.
Initial version of PR also extracted a DataDirTestingSetup from BasicTestingSetup, making the latter not use the disk, but the added complexity didn’t deliver sufficient speedups to clearly justify itself.
Follow-up to #34562 (review) Arguably in a similar vein as #22086.