13.8 C
New York
Tuesday, October 29, 2024

bitcoind – Bitcoin v23 is 10 occasions slower than v22 on macos for fundamental regtest checks

Share To Your Friends

[ad_1]

That is how I begin the node (I at all times begin it from a clear state):

rm -rf /tmp/regtest1/bitcoind
mkdir -p /tmp/regtest1/bitcoind


#/Functions/Bitcoin Core 22.app/Contents/MacOS/Bitcoin-Qt 
/Functions/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt 
  -datadir=/tmp/regtest1/bitcoind 
  -regtest 
  -server 
  -txindex 
  -fallbackfee=0.0002 
  -zmqpubhashtx=tcp://127.0.0.1:30001 
  -zmqpubhashblock=tcp://127.0.0.1:30001

Then I create a pockets and mine some blocks:

bitcoin-cli -regtest -datadir=/tmp/regtest1/bitcoind createwallet farvault_tests
GEN_ADDRESS=$(bitcoin-cli -regtest -datadir=/tmp/regtest1/bitcoind getnewaddress)
bitcoin-cli -regtest -datadir=/tmp/regtest1/bitcoind generatetoaddress 101 $GEN_ADDRESS

For some purpose the App downloaded right here (v22) is x10 quicker than the one downloaded right here (v23).

The brand new tackle and the 101 blocks are created in beneath 2 secs on v22 whereas it takes 17 secs on v23.

I additionally compiled bitcoind 23 with these choices:

git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
./autogen.sh
./configure --enable-hardening --with-gui=no
make

which gives additionally the identical unhealthy efficiency because the v23 downloaded App.

Do you could have any thought why v22 could be a lot quicker? Any clues as to how I ought to tackle the difficulty?

My laptop is a 2.8 GHz quad-core Intel Core i7 operating Macos Large Sur.

EDIT: I upgraded to Monterey and nothing modified: v22 is 10x quicker than v23.

I’ve not checked efficiency on testnet and mainnet. I am principally fascinated about operating integration checks for a venture and it appears like I can’t improve to the brand new model but with out fixing this.

[ad_2]


Share To Your Friends

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles