Created
February 13, 2023 19:08
-
-
Save mdcallag/0f5dfb773f203d6cff58cf7287c042bc to your computer and use it in GitHub Desktop.
This file contains 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
ntabs=$1 | |
nrows=$2 | |
nsecs=$3 | |
basedir=$4 | |
sysbdir=$5 | |
datadir=$6 | |
devname=$7 | |
usepk=$8 | |
prepstmt=$9 | |
# Remaining args are numbers of threads for which to run benchmarks, "1 2 4" | |
shift 9 | |
function dbms_up() { | |
bdir=$1 | |
cnf=$2 | |
# /media/ephemeral1 or /home/mdcallag/d or ??? | |
cdir=$PWD | |
cd $bdir; bash ini.sh $cnf >& o.ini; sleep 10; cd $cdir | |
} | |
function dbms_down() { | |
bdir=$1 | |
cnf=$2 | |
cdir=$PWD | |
cd $bdir; bash down.sh $cnf >& o.down; cd $cdir | |
} | |
dbcreds=postgres,root,pw,127.0.0.1,ib | |
#for dcnf in pg151.x7_128gram_64kiops ; do | |
for dcnf in pg151.x7_128gram_64kiops pg151_archnative.x7_128gram_64kiops ; do | |
dbms=$( echo $dcnf | tr '.' ' ' | awk '{ print $1 }' ) | |
cnf=$( echo $dcnf | tr '.' ' ' | awk '{ print $2 }' ) | |
dbdir=$basedir/$dbms | |
client=$dbdir/bin/psql | |
echo Run for $dbms with $cnf config from $dbdir | |
dbms_up $dbdir $cnf | |
bash all_small.sh $ntabs $nrows $nsecs $nsecs $nsecs $dbcreds 1 1 $client none $sysbdir $datadir $devname $usepk $prepstmt $@ | |
mkdir x.$dcnf.pk${usepk}; mv sb.* x.$dcnf.pk${usepk}; cp $dbdir/conf.diff $dbdir/o.ini* x.$dcnf.pk${usepk} | |
dbms_down $dbdir $cnf | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment