#!/bin/sh # $PostgreSQL: pgsql/src/test/bench/runwisc.sh,v 1.5 2003/11/29 19:52:14 pgsql Exp $ # # Note that in our published benchmark numbers, we executed the command in the # following fashion: # # time $POSTGRES -texecutor -tplanner -f hashjoin -Q bench # if [ ! -d $1 ]; then echo " you must specify a valid data directory " exit fi if [ -d ./obj ]; then cd ./obj fi echo =============== vacuuming benchmark database... ================= echo "vacuum" | postgres -D${1} -Q bench > /dev/null echo =============== running benchmark... ================= time postgres -D${1} -texecutor -tplanner -Q bench < bench.sql