for r in `seq 1 10`; do

	for c in 1 2 5 10 20 30 40 50 100 200 300 400 500 600 700 800 900 1000; do

		if [ $c -lt 20 ]; then
			j=$c
		elif [ $c -le 100 ]; then
			j=$((c/2))
		else
			j=50
		fi

		tps=`pgbench -n -S -j $j -c $c -M prepared -T 30 test | grep with | awk '{print $3}'`

		echo $r $c $tps

	done

done
