Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# cat xh
notes
fillseq
rr,nopin,L0=4
rr,pin,L0=4
rr,nopin,L0=2
rr,pin,L0=2
rr,nopin,L0=1
rr,pin,L0=1
overwrite
rr,nopin,L0=4
rr,pin,L0=4
rr,nopin,L0=2
rr,pin,L0=2
rr,nopin,L0=1
rr,pin,L0=1
# cat pp.sh
n=$1
k=$2
v=$3
rm -f x2.n$n.k$k.v$v
for r in 42 547 575 5142 5143 ; do
echo $r > x2.v$r.n$n.k$k.v$v
cat x.v$r.n${n}.p3.k$k.v$v | awk '{ if (NF == 3) { print "NA" }; if (NF == 2) { print $2 }; if (NF >= 6) { print $6 } }' >> x2.v$r.n$n.k$k.v$v
if [ ! -f x2.n$n.k$k.v$v ]; then
cp x2.v$r.n$n.k$k.v$v x2.n$n.k$k.v$v
else
paste x2.n$n.k$k.v$v x2.v$r.n$n.k$k.v$v > x2
mv -f x2 x2.n$n.k$k.v$v
fi
done
cat x2.n$n.k$k.v$v | awk '{ if (NR == 1) { printf "%s\tratio\n", $0 } else { if ($1 != "NA") { r = $NF / $1 } else { r = 0.0 }; printf "%s\t%.3f\n", $0, r } }' > x2; mv x2 x2.n$n.k$k.v$v
paste x2.n$n.k$k.v$v xh > x2; mv -f x2 x2.n$n.k$k.v$v; cat x2.n$n.k$k.v$v
# cat ra.sh
dur=$1
p=$2
cmb=$3
n=10000000; k=32; v=10
for r in 42 547 575 5142 5143; do echo n=$n, k=$k, v=$v, p=$p ver=$r $( date ); bash r.sh $r ./rdb 3 $n $p $k $v $cmb $dur ; done
n=100000000; k=32; v=10
for r in 42 547 575 5142 5143; do echo n=$n, k=$k, v=$v, p=$p ver=$r $( date ); bash r.sh $r ./rdb 3 $n $p $k $v $cmb $dur ; done
n=1000000000; k=32; v=10
for r in 42 547 575 5142 5143; do echo n=$n, k=$k, v=$v, p=$p ver=$r $( date ); bash r.sh $r ./rdb 3 $n $p $k $v $cmb $dur ; done
n=1000000; k=8; v=400
for r in 42 547 575 5142 5143; do echo n=$n, k=$k, v=$v, p=$p ver=$r $( date ); bash r.sh $r ./rdb 3 $n $p $k $v $cmb $dur ; done
n=10000000; k=8; v=400
for r in 42 547 575 5142 5143; do echo n=$n, k=$k, v=$v, p=$p ver=$r $( date ); bash r.sh $r ./rdb 3 $n $p $k $v $cmb $dur ; done
n=100000000; k=8; v=400
for r in 42 547 575 5142 5143; do echo n=$n, k=$k, v=$v, p=$p ver=$r $( date ); bash r.sh $r ./rdb 3 $n $p $k $v $cmb $dur ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.