mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 05:39:38 +02:00
doc: Update for CMake-based build system
Co-authored-by: Lőrinc <pap.lorinc@gmail.com> Co-authored-by: pablomartin4btc <pablomartin4btc@gmail.com>
This commit is contained in:
@@ -8,16 +8,17 @@ thread queue, wallet balance.
|
||||
Running
|
||||
---------------------
|
||||
|
||||
For benchmarking, you only need to compile `bitcoin_bench`. The bench runner
|
||||
warns if you configure with `--enable-debug`, but consider if building without
|
||||
For benchmarking, you only need to compile `bench_bitcoin`. The bench runner
|
||||
warns if you configure with `-DCMAKE_BUILD_TYPE=Debug`, but consider if building without
|
||||
it will impact the benchmark(s) you are interested in by unlatching log printers
|
||||
and lock analysis.
|
||||
|
||||
make -C src bitcoin_bench
|
||||
cmake -B build -DBUILD_BENCH=ON
|
||||
cmake --build build -t bench_bitcoin
|
||||
|
||||
After compiling bitcoin-core, the benchmarks can be run with:
|
||||
|
||||
src/bench/bench_bitcoin
|
||||
build/src/bench/bench_bitcoin
|
||||
|
||||
The output will look similar to:
|
||||
```
|
||||
@@ -39,7 +40,7 @@ The output will look similar to:
|
||||
Help
|
||||
---------------------
|
||||
|
||||
src/bench/bench_bitcoin -?
|
||||
build/src/bench/bench_bitcoin -?
|
||||
|
||||
To print the various options, like listing the benchmarks without running them
|
||||
or using a regex filter to only run certain benchmarks.
|
||||
|
||||
Reference in New Issue
Block a user