Last active
May 23, 2018 14:38
-
-
Save skeees/93d3ab3ce8ceabfa1b68df51d3b36b60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ROOT=`pwd` | |
| N=3 | |
| BRANCHES=("_pin-1805-asynclog-master" | |
| "_pin-1805-asynclog-bluematt" | |
| #"_pin-1805-asynclog-jamesob-og" | |
| #"_pin-1805-asynclog-skeees-og" | |
| "_pin-1805-asynclog-skeees-jamesob") | |
| BITCOIN=./bitcoind-_pin-1805-asynclog-master | |
| HEIGHT=100000 | |
| git clone [email protected]:skeees/bitcoin.git | |
| cd bitcoin | |
| ./autogen.sh | |
| ./configure --disable-wallet --with-incompatible-bdb --without-gui | |
| #build everything | |
| for branch in ${BRANCHES[@]} | |
| do | |
| echo building $branch | |
| git checkout $branch | |
| make -j$(nproc) | |
| cp src/bitcoind ../bitcoind-$branch | |
| done | |
| cd .. | |
| rm -rf base ibd | |
| mkdir base ibd | |
| #bootstrap a chain | |
| $BITCOIN -stopatheight=$HEIGHT -datadir=$ROOT/base | |
| #reindex test | |
| for branch in ${BRANCHES[@]} | |
| do | |
| echo benchmarking reindex $branch | |
| for i in $(seq $N) | |
| do | |
| rm $ROOT/base/debug.log | |
| time ./bitcoind-$branch -reindex -debug -stopatheight=$HEIGHT -noprinttoconsole -connect=0 -datadir=$ROOT/base | |
| done | |
| done | |
| #ibd test | |
| $BITCOIN -connect=0 -whitebind=127.0.0.1:24242 -rpcport=24241 -noprinttoconsole -datadir=$ROOT/base -daemon | |
| for branch in ${BRANCHES[@]} | |
| do | |
| echo benchmarking ibd $branch | |
| for i in $(seq $N) | |
| do | |
| rm -rf $ROOT/ibd | |
| mkdir ibd | |
| time ./bitcoind-$branch -debug -stopatheight=$HEIGHT -minimumchainwork=0 -noprinttoconsole -connect=127.0.0.1:24242 -datadir=$ROOT/ibd | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment