#!/bin/sh
# 
# Does several dbench runs with increasing numbers of client
# 

[ -z "$here" ] && here=`pwd`
. $here/common.dbench

if [ $# -gt 0 ]; then
	_format_header_multipass 1 2 10 20 #50
	exit 0
fi
tmpfile=/var/tmp/dbench.$$
rm -f $tmpfile
_run_dbench 1	>> $tmpfile
_run_dbench 2	>> $tmpfile
_run_dbench 10	>> $tmpfile
_run_dbench 20	>> $tmpfile
#_run_dbench 50	>> $tmpfile
_filter_dbench_multipass < $tmpfile
rm -f $tmpfile
