-
Notifications
You must be signed in to change notification settings - Fork 2
revert https://github.com/bitcoin/bitcoin/pull/16957 #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
📊 Benchmark results for this run (14491957857) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-163/14491957857/index.html after the github pages "build and deployment" action has completed. |
|
Rebased for better results. COMMITS="eb48e1871bf3f08dd9baf3deff689108c0c99aed 0c50e4c5846417224c96965fda3f7a9264721707"; \
STOP_HEIGHT=888888; DBCACHE=4500; \
CC=gcc; CXX=g++; \
BASE_DIR="/mnt/my_storage"; DATA_DIR="$BASE_DIR/BitcoinData"; LOG_DIR="$BASE_DIR/logs"; \
(for c in $COMMITS; do git fetch origin $c -q && git log -1 --pretty=format:'%h %s' $c || exit 1; done) && \
hyperfine \
--sort 'command' \
--runs 2 \
--export-json "$BASE_DIR/rdx-${COMMITS// /-}-$STOP_HEIGHT-$DBCACHE-$CC.json" \
--parameter-list COMMIT ${COMMITS// /,} \
--prepare "killall bitcoind; rm -f $DATA_DIR/debug.log; git checkout {COMMIT}; git clean -fxd; git reset --hard; \
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_WALLET=OFF && cmake --build build -j$(nproc) --target bitcoind && \
./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=$STOP_HEIGHT -dbcache=5000 -printtoconsole=0; sleep 100" \
--cleanup "cp $DATA_DIR/debug.log $LOG_DIR/debug-{COMMIT}-$(date +%s).log" \
"COMPILER=$CC ./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=$STOP_HEIGHT -dbcache=$DBCACHE -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0"
Benchmark 1: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = eb48e1871bf3f08dd9baf3deff689108c0c99aed)
Time (mean ± σ): 17156.967 s ± 9.928 s [User: 22651.795 s, System: 955.218 s]
Range (min … max): 17149.947 s … 17163.987 s 2 runs
Benchmark 2: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = 0c50e4c5846417224c96965fda3f7a9264721707)
Time (mean ± σ): 17855.921 s ± 34.436 s [User: 23367.395 s, System: 966.584 s]
Range (min … max): 17831.571 s … 17880.271 s 2 runs
Relative speed comparison
1.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = eb48e1871bf3f08dd9baf3deff689108c0c99aed)
1.04 ± 0.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = 0c50e4c5846417224c96965fda3f7a9264721707) |
|
📊 Benchmark results for this run (14563336819) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-163/14563336819/index.html after the github pages "build and deployment" action has completed. |
|
on HDD: COMMITS="d91a746815e4428c738f1a096a950292cbdb5469 3db4e71c9669a6692e699f037b9e5d2264cd9de8"; \
STOP_HEIGHT=888888; DBCACHE=4500; \
CC=gcc; CXX=g++; \
BASE_DIR="/mnt/my_storage"; DATA_DIR="$BASE_DIR/BitcoinData"; LOG_DIR="$BASE_DIR/logs"; \
(for c in $COMMITS; do git fetch origin $c -q && git log -1 --pretty=format:'%h %s' $c || exit 1; done) && \
hyperfine \
--sort 'command' \
--runs 2 \
--export-json "$BASE_DIR/rdx-${COMMITS// /-}-$STOP_HEIGHT-$DBCACHE-$CC.json" \
--parameter-list COMMIT ${COMMITS// /,} \
--prepare "killall bitcoind; rm -f $DATA_DIR/debug.log; git checkout {COMMIT}; git clean -fxd; git reset --hard; \
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_WALLET=OFF && cmake --build build -j$(nproc) --target bitcoind && \
./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=$STOP_HEIGHT -dbcache=5000 -printtoconsole=0; sleep 100" \
--cleanup "cp $DATA_DIR/debug.log $LOG_DIR/debug-{COMMIT}-$(date +%s).log" \
"COMPILER=$CC ./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=$STOP_HEIGHT -dbcache=$DBCACHE -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0"
Benchmark 1: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = d91a746815e4428c738f1a096a950292cbdb5469)
Time (mean ± σ): 25734.584 s ± 295.031 s [User: 23762.908 s, System: 947.410 s]
Range (min … max): 25525.966 s … 25943.203 s 2 runs
Benchmark 2: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = 3db4e71c9669a6692e699f037b9e5d2264cd9de8)
Time (mean ± σ): 25041.004 s ± 90.525 s [User: 23045.352 s, System: 945.514 s]
Range (min … max): 24976.993 s … 25105.015 s 2 runs
Relative speed comparison
1.03 ± 0.01 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = d91a746815e4428c738f1a096a950292cbdb5469)
1.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=4500 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = 3db4e71c9669a6692e699f037b9e5d2264cd9de8) |
|
DId an AssumeUTXO loading bench - 3-5% faster if we revert: COMMITS="7a3afe6787bc36fd98684eac020f9abdbfae6f0a a74701b8a1f22867660d3a38bfa56242d9bb0f81"; \
CC=gcc; CXX=g++; \
BASE_DIR="/mnt/my_storage"; DATA_DIR="$BASE_DIR/ShallowBitcoinData"; LOG_DIR="$BASE_DIR/logs"; UTXO_SNAPSHOT_PATH="$BASE_DIR/utxo-880000.dat"; \
(for c in $COMMITS; do git fetch origin $c -q && git log -1 --pretty=format:'%h %s' $c || exit 1; done) && \
for DBCACHE in 450 4500 45000; do \
hyperfine \
--sort 'command' \
--runs 3 \
--export-json "$BASE_DIR/assumeutxo-${COMMITS// /-}-$DBCACHE-$CC.json" \
--parameter-list COMMIT ${COMMITS// /,} \
--prepare "killall bitcoind; rm -rf $DATA_DIR/chainstate $DATA_DIR/chainstate_snapshot $DATA_DIR/debug.log; git checkout {COMMIT}; git clean -fxd; git reset --hard; \
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_WALLET=OFF && cmake --build build -j$(nproc) --target bitcoind --target bitcoin-cli && \
./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=1 -printtoconsole=0; \
./build/bin/bitcoind -datadir=$DATA_DIR -daemon -blocksonly=1 -connect=0 -dbcache=$DBCACHE -printtoconsole=0; sleep 10" \
--cleanup "cp $DATA_DIR/debug.log $LOG_DIR/debug-assumeutxo-{COMMIT}-dbcache-$DBCACHE-$(date +%s).log; build/bin/bitcoin-cli -datadir=$DATA_DIR stop; sleep 10; killall bitcoind; sleep 10;" \
"COMPILER=$CC DBCACHE=$DBCACHE COMMIT={COMMIT} ./build/bin/bitcoin-cli -datadir=$DATA_DIR -rpcclienttimeout=0 loadtxoutset $UTXO_SNAPSHOT_PATH"; \
done
Benchmark 1: COMPILER=gcc DBCACHE=450 COMMIT=7a3afe6787bc36fd98684eac020f9abdbfae6f0a ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 473.096 s ± 4.304 s [User: 0.001 s, System: 0.002 s]
Range (min … max): 468.230 s … 476.401 s 3 runs
Benchmark 2: COMPILER=gcc DBCACHE=450 COMMIT=a74701b8a1f22867660d3a38bfa56242d9bb0f81 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 458.987 s ± 5.851 s [User: 0.001 s, System: 0.002 s]
Range (min … max): 453.549 s … 465.179 s 3 runs
Relative speed comparison
1.03 ± 0.02 COMPILER=gcc DBCACHE=450 COMMIT=7a3afe6787bc36fd98684eac020f9abdbfae6f0a ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 COMPILER=gcc DBCACHE=450 COMMIT=a74701b8a1f22867660d3a38bfa56242d9bb0f81 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.datBenchmark 1: COMPILER=gcc DBCACHE=4500 COMMIT=7a3afe6787bc36fd98684eac020f9abdbfae6f0a ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 495.739 s ± 4.520 s [User: 0.002 s, System: 0.001 s]
Range (min … max): 491.485 s … 500.485 s 3 runs
Benchmark 2: COMPILER=gcc DBCACHE=4500 COMMIT=a74701b8a1f22867660d3a38bfa56242d9bb0f81 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 473.514 s ± 4.761 s [User: 0.002 s, System: 0.001 s]
Range (min … max): 468.169 s … 477.299 s 3 runs
Relative speed comparison
1.05 ± 0.01 COMPILER=gcc DBCACHE=4500 COMMIT=7a3afe6787bc36fd98684eac020f9abdbfae6f0a ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 COMPILER=gcc DBCACHE=4500 COMMIT=a74701b8a1f22867660d3a38bfa56242d9bb0f81 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.datBenchmark 1: COMPILER=gcc DBCACHE=45000 COMMIT=7a3afe6787bc36fd98684eac020f9abdbfae6f0a ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 471.687 s ± 0.725 s [User: 0.001 s, System: 0.001 s]
Range (min … max): 470.914 s … 472.352 s 3 runs
Benchmark 2: COMPILER=gcc DBCACHE=45000 COMMIT=a74701b8a1f22867660d3a38bfa56242d9bb0f81 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 455.890 s ± 0.593 s [User: 0.001 s, System: 0.001 s]
Range (min … max): 455.297 s … 456.483 s 3 runs
Relative speed comparison
1.03 ± 0.00 COMPILER=gcc DBCACHE=45000 COMMIT=7a3afe6787bc36fd98684eac020f9abdbfae6f0a ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 COMPILER=gcc DBCACHE=45000 COMMIT=a74701b8a1f22867660d3a38bfa56242d9bb0f81 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat |
Let's see if this is still better
|
Memory usage seems to increase a bit, which is likely because
MB
744.1^#
|#::::::::@:::::::::::: ::::::: ::: :::
|#: :: :: @: :: ::: :: : : :::: : : : :
|#: :: :: @: :: ::: :: :: : :::: : : : :
|#: :: :: @: :: ::: :: :: : :::: @: : : :
|#: :: :: @: :: ::: :: @:: : :::: @: : : :
|#: :: :: @: :: ::: :: @:: : :::: @: : : :
|#: :: :: @: :: ::: :: @:::: :::: @: : : :
|#: :: :: @: :: ::: :: @:::: :::: @: : : :
|#: :: :: @: :: ::: :: @:::: :::: @: : : :::
|#: :: :: @: :: ::: :: @:::: :::: @: : : ::
|#: :: :: @: :: ::: :: @:::: :::: @: :::: ::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : ::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : :: ::::@@:::::::@@:::@::::@::::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : :: : : @ : : :: @ : :@::::@::::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : :: : : @ : : :: @ : :@::::@::::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : :: : : @ : : :: @ : :@::::@::::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : :: : : @ : : :: @ : :@::::@::::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : :: : : @ : : :: @ : :@::::@::::
|#: :: :: @: :: ::: :: @:::: :::: @: :: : :: : : @ : : :: @ : :@::::@::::
0 +----------------------------------------------------------------------->h
0 1.807vs MB
766.5^ ::
| #::: :: ::: :::: :::@:::: :: :::::::
| #:::::::: :::::: :::: :::@:::: ::: :::: ::
| #::::::::::::::: :::: :::@:::: ::: :::: ::
| #::::::::::::::: :::: :::@:::: ::: :::: ::
| #:::::::::::::::@:::: :::@:::: ::: :::: ::
| #:::::::::::::::@:::: :::@:::: ::: :::: ::
| #:::::::::::::::@:::: :::@:::: ::: :::: ::
| #:::::::::::::::@::::::::@::::::::: :::: ::
| #:::::::::::::::@::::::::@::::: ::: :::: ::
| #:::::::::::::::@::::::::@::::: ::: :::: ::
| #:::::::::::::::@::::::::@::::: ::: :::: ::
| #:::::::::::::::@::::::::@::::: ::: :::: ::
| #:::::::::::::::@::::::::@::::: ::: :::: ::
| #:::::::::::::::@::::::::@::::: ::: :::: :::::::@::::@::::@::::@::::@::
| #:::::::::::::::@::::::::@::::: ::: :::: ::: :::@::::@::::@::::@::::@::
| #:::::::::::::::@::::::::@::::: ::: :::: ::: :::@::::@::::@::::@::::@::
| #:::::::::::::::@::::::::@::::: ::: :::: ::: :::@::::@::::@::::@::::@::
| #:::::::::::::::@::::::::@::::: ::: :::: ::: :::@::::@::::@::::@::::@::
| #:::::::::::::::@::::::::@::::: ::: :::: ::: :::@::::@::::@::::@::::@::
0 +----------------------------------------------------------------------->h
0 1.739If we fix the MB
709.7^#
|# :::: :: :: ::::@ @::: :::::::
|#::::::::@:::::: : ::@:: :@::::::: : ::@@::
|#::::::::@:::::: : ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@:: :@::::::: : ::@ ::
|#::::::::@:::::: :: ::@::::@::::::: : ::@ ::
|#::::::::@:::::: :: ::@::::@::::::: : ::@ ::
|#::::::::@:::::: :: ::@::::@::::::: : ::@ :::::@::@::::@:::::@::::@::::@
|#::::::::@:::::: :: ::@::::@::::::: : ::@ :::: @::@::::@:::::@::::@::::@
|#::::::::@:::::: :: ::@::::@::::::: : ::@ :::: @::@::::@:::::@::::@::::@
|#::::::::@:::::: :: ::@::::@::::::: : ::@ :::: @::@::::@:::::@::::@::::@
|#::::::::@:::::: :: ::@::::@::::::: : ::@ :::: @::@::::@:::::@::::@::::@
|#::::::::@:::::: :: ::@::::@::::::: : ::@ :::: @::@::::@:::::@::::@::::@
|#::::::::@:::::: :: ::@::::@::::::: : ::@ :::: @::@::::@:::::@::::@::::@
0 +----------------------------------------------------------------------->h
0 1.814 |
Note that this was already included in `using CCoinsMap`: > Most implementations have an overhead of 1 or 2 pointers, so nodes can be connected in a linked list, and in some cases the hash value is stored as well.
|
📊 Benchmark results for this run (14613807216) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-163/14613807216/index.html after the github pages "build and deployment" action has completed. |
|
📊 Benchmark results for this run (14617315459) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-163/14617315459/index.html after the github pages "build and deployment" action has completed. |
|
Ran a AssumeUTXO bench with different dbcache sizes - with a lot lower memory (because of the last commit) the speed is still better. For very low memory it's slower (but uses a lot lower memory). We could fix that by increasing the default memory. COMMITS="0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 6df3234893cf2ef6c42100f6358c1208a2952be9 e9800f880c869c346ad4141977d9132d51d7080e"; \
CC=gcc; CXX=g++; \
BASE_DIR="/mnt/my_storage"; DATA_DIR="$BASE_DIR/ShallowBitcoinData"; LOG_DIR="$BASE_DIR/logs"; UTXO_SNAPSHOT_PATH="$BASE_DIR/utxo-880000.dat"; \
(for c in $COMMITS; do git fetch origin $c -q && git log -1 --pretty=format:'%h %s' $c || exit 1; done) && \
for DBCACHE in 450 4500 45000; do \
hyperfine \
--sort 'command' \
--runs 3 \
--export-json "$BASE_DIR/assumeutxo-${COMMITS// /-}-$DBCACHE-$CC.json" \
--parameter-list COMMIT ${COMMITS// /,} \
--prepare "killall bitcoind; rm -rf $DATA_DIR/chainstate $DATA_DIR/chainstate_snapshot $DATA_DIR/debug.log; git checkout {COMMIT}; git clean -fxd; git reset --hard; \
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_WALLET=OFF && cmake --build build -j$(nproc) --target bitcoind --target bitcoin-cli && \
./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=1 -printtoconsole=0; \
./build/bin/bitcoind -datadir=$DATA_DIR -daemon -blocksonly=1 -connect=0 -dbcache=$DBCACHE -printtoconsole=0; sleep 10" \
--cleanup "cp $DATA_DIR/debug.log $LOG_DIR/debug-assumeutxo-{COMMIT}-dbcache-$DBCACHE-$(date +%s).log; build/bin/bitcoin-cli -datadir=$DATA_DIR stop; sleep 10; killall bitcoind; sleep 10;" \
"COMPILER=$CC DBCACHE=$DBCACHE COMMIT={COMMIT} ./build/bin/bitcoin-cli -datadir=$DATA_DIR -rpcclienttimeout=0 loadtxoutset $UTXO_SNAPSHOT_PATH"; \
done
Benchmark 1: COMPILER=gcc DBCACHE=450 COMMIT=0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 480.490 s ± 11.381 s [User: 0.000 s, System: 0.002 s]
Range (min … max): 469.866 s … 492.500 s 3 runs
Benchmark 2: COMPILER=gcc DBCACHE=450 COMMIT=6df3234893cf2ef6c42100f6358c1208a2952be9 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 463.958 s ± 5.475 s [User: 0.001 s, System: 0.002 s]
Range (min … max): 458.823 s … 469.720 s 3 runs
Benchmark 3: COMPILER=gcc DBCACHE=450 COMMIT=e9800f880c869c346ad4141977d9132d51d7080e ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 516.842 s ± 6.195 s [User: 0.000 s, System: 0.002 s]
Range (min … max): 510.361 s … 522.704 s 3 runs
Relative speed comparison
1.04 ± 0.03 COMPILER=gcc DBCACHE=450 COMMIT=0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 COMPILER=gcc DBCACHE=450 COMMIT=6df3234893cf2ef6c42100f6358c1208a2952be9 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.11 ± 0.02 COMPILER=gcc DBCACHE=450 COMMIT=e9800f880c869c346ad4141977d9132d51d7080e ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.datBenchmark 1: COMPILER=gcc DBCACHE=4500 COMMIT=0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 487.646 s ± 3.368 s [User: 0.001 s, System: 0.001 s]
Range (min … max): 484.786 s … 491.358 s 3 runs
Benchmark 2: COMPILER=gcc DBCACHE=4500 COMMIT=6df3234893cf2ef6c42100f6358c1208a2952be9 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 475.006 s ± 3.147 s [User: 0.001 s, System: 0.002 s]
Range (min … max): 472.758 s … 478.602 s 3 runs
Benchmark 3: COMPILER=gcc DBCACHE=4500 COMMIT=e9800f880c869c346ad4141977d9132d51d7080e ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 474.334 s ± 0.691 s [User: 0.002 s, System: 0.001 s]
Range (min … max): 473.679 s … 475.056 s 3 runs
Relative speed comparison
1.03 ± 0.01 COMPILER=gcc DBCACHE=4500 COMMIT=0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 ± 0.01 COMPILER=gcc DBCACHE=4500 COMMIT=6df3234893cf2ef6c42100f6358c1208a2952be9 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 COMPILER=gcc DBCACHE=4500 COMMIT=e9800f880c869c346ad4141977d9132d51d7080e ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.datBenchmark 1: COMPILER=gcc DBCACHE=45000 COMMIT=0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 475.820 s ± 9.651 s [User: 0.001 s, System: 0.002 s]
Range (min … max): 469.527 s … 486.932 s 3 runs
Benchmark 2: COMPILER=gcc DBCACHE=45000 COMMIT=6df3234893cf2ef6c42100f6358c1208a2952be9 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 456.508 s ± 0.869 s [User: 0.001 s, System: 0.001 s]
Range (min … max): 455.860 s … 457.496 s 3 runs
Benchmark 3: COMPILER=gcc DBCACHE=45000 COMMIT=e9800f880c869c346ad4141977d9132d51d7080e ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
Time (mean ± σ): 456.342 s ± 0.469 s [User: 0.001 s, System: 0.001 s]
Range (min … max): 455.806 s … 456.675 s 3 runs
Relative speed comparison
1.04 ± 0.02 COMPILER=gcc DBCACHE=45000 COMMIT=0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 ± 0.00 COMPILER=gcc DBCACHE=45000 COMMIT=6df3234893cf2ef6c42100f6358c1208a2952be9 ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat
1.00 COMPILER=gcc DBCACHE=45000 COMMIT=e9800f880c869c346ad4141977d9132d51d7080e ./build/bin/bitcoin-cli -datadir=/mnt/my_storage/ShallowBitcoinData -rpcclienttimeout=0 loadtxoutset /mnt/my_storage/utxo-880000.dat |
|
Turns out even COMMITS="0f3964f5b3d4e38355d4db4040b8e059fb8e75e8 e9800f880c869c346ad4141977d9132d51d7080e"; \
STOP_HEIGHT=888888; DBCACHE=450; \
CC=gcc; CXX=g++; \
BASE_DIR="/mnt/my_storage"; DATA_DIR="$BASE_DIR/BitcoinData"; LOG_DIR="$BASE_DIR/logs"; \
(for c in $COMMITS; do git fetch origin $c -q && git log -1 --pretty=format:'%h %s' $c || exit 1; done) && \
hyperfine \
--sort 'command' \
--runs 2 \
--export-json "$BASE_DIR/rdx-${COMMITS// /-}-$STOP_HEIGHT-$DBCACHE-$CC.json" \
--parameter-list COMMIT ${COMMITS// /,} \
--prepare "killall bitcoind; rm -f $DATA_DIR/debug.log; git checkout {COMMIT}; git clean -fxd; git reset --hard; \
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_WALLET=OFF && cmake --build build -j$(nproc) --target bitcoind && \
./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=$STOP_HEIGHT -dbcache=5000 -printtoconsole=0; sleep 100" \
--cleanup "cp $DATA_DIR/debug.log $LOG_DIR/debug-{COMMIT}-$(date +%s).log" \
"COMPILER=$CC ./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=$STOP_HEIGHT -dbcache=$DBCACHE -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0"
Benchmark 1: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=450 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = 0f3964f5b3d4e38355d4db4040b8e059fb8e75e8)
Time (mean ± σ): 21642.550 s ± 38.787 s [User: 36420.107 s, System: 2727.113 s]
Range (min … max): 21615.124 s … 21669.976 s 2 runs
Benchmark 2: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=450 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = e9800f880c869c346ad4141977d9132d51d7080e)
Time (mean ± σ): 21441.898 s ± 46.203 s [User: 36259.157 s, System: 2802.353 s]
Range (min … max): 21409.227 s … 21474.568 s 2 runs
Relative speed comparison
1.01 ± 0.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=450 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = 0f3964f5b3d4e38355d4db4040b8e059fb8e75e8)
1.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -stopatheight=888888 -dbcache=450 -blocksonly -reindex-chainstate -connect=0 -printtoconsole=0 (COMMIT = e9800f880c869c346ad4141977d9132d51d7080e) |
|
Latest measurement: COMMITS="c5e44a043563dbe5439d1cd8e623467936db1187 8ce5f597b7343dc2f06b41687ec25ffad3811e00 fd5852cd3d132e67184fee8b7ded06e7daaef1c1"; \
STOP_HEIGHT=888888; DBCACHE=4500; \
CC=gcc; CXX=g++; \
BASE_DIR="/mnt/my_storage"; DATA_DIR="$BASE_DIR/BitcoinData"; LOG_DIR="$BASE_DIR/logs"; \
(echo ""; for c in $COMMITS; do git fetch origin $c -q && git log -1 --pretty=format:'%h %s' $c || exit 1; done; echo "") && \
hyperfine \
--sort 'command' \
--runs 2 \
--export-json "$BASE_DIR/rdx-${COMMITS// /-}-$STOP_HEIGHT-$DBCACHE-$CC.json" \
--parameter-list COMMIT ${COMMITS// /,} \
--prepare "killall bitcoind; rm -f $DATA_DIR/debug.log; git checkout {COMMIT}; git clean -fxd; git reset --hard; \
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_WALLET=OFF && cmake --build build -j$(nproc) --target bitcoind && \
./build/bin/bitcoind -datadir=$DATA_DIR -stopatheight=$STOP_HEIGHT -dbcache=5000 -printtoconsole=0; sleep 100" \
--cleanup "cp $DATA_DIR/debug.log $LOG_DIR/debug-{COMMIT}-$(date +%s).log" \
"COMPILER=$CC ./build/bin/bitcoind -datadir=$DATA_DIR -reindex-chainstate -blocksonly -connect=0 -printtoconsole=0 -stopatheight=$STOP_HEIGHT -dbcache=$DBCACHE"
Benchmark 1: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -reindex-chainstate -blocksonly -connect=0 -printtoconsole=0 -stopatheight=888888 -dbcache=4500 (COMMIT = c5e44a043563dbe5439d1cd8e623467936db1187)
Time (mean ± σ): 26571.096 s ± 65.731 s [User: 23751.494 s, System: 955.961 s]
Range (min … max): 26524.618 s … 26617.575 s 2 runs
Benchmark 2: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -reindex-chainstate -blocksonly -connect=0 -printtoconsole=0 -stopatheight=888888 -dbcache=4500 (COMMIT = 8ce5f597b7343dc2f06b41687ec25ffad3811e00)
Time (mean ± σ): 26059.562 s ± 73.187 s [User: 23145.020 s, System: 955.581 s]
Range (min … max): 26007.811 s … 26111.313 s 2 runs
Benchmark 3: COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -reindex-chainstate -blocksonly -connect=0 -printtoconsole=0 -stopatheight=888888 -dbcache=4500 (COMMIT = fd5852cd3d132e67184fee8b7ded06e7daaef1c1)
Time (mean ± σ): 26343.847 s ± 2.230 s [User: 23396.385 s, System: 990.685 s]
Range (min … max): 26342.270 s … 26345.424 s 2 runsRelative speed comparison
1.02 ± 0.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -reindex-chainstate -blocksonly -connect=0 -printtoconsole=0 -stopatheight=888888 -dbcache=4500 (COMMIT = c5e44a043563dbe5439d1cd8e623467936db1187)
1.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -reindex-chainstate -blocksonly -connect=0 -printtoconsole=0 -stopatheight=888888 -dbcache=4500 (COMMIT = 8ce5f597b7343dc2f06b41687ec25ffad3811e00)
1.01 ± 0.00 COMPILER=gcc ./build/bin/bitcoind -datadir=/mnt/my_storage/BitcoinData -reindex-chainstate -blocksonly -connect=0 -printtoconsole=0 -stopatheight=888888 -dbcache=4500 (COMMIT = fd5852cd3d132e67184fee8b7ded06e7daaef1c1) |
|
|


Reverted bitcoin#16957
Let's see if this is still better
https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/hashtable_policy.h#L348