|
|
|
@ -38,6 +38,7 @@ db_supported=$2 |
|
|
|
|
go build -o bin/benchmark |
|
|
|
|
go build -o bin/txgen client/txgen/main.go |
|
|
|
|
go build -o bin/profiler profiler/main.go |
|
|
|
|
cd bin |
|
|
|
|
|
|
|
|
|
# Create a tmp folder for logs |
|
|
|
|
t=`date +"%Y%m%d-%H%M%S"` |
|
|
|
@ -51,9 +52,9 @@ while IFS='' read -r line || [[ -n "$line" ]]; do |
|
|
|
|
#echo $ip $port $mode |
|
|
|
|
if [ "$mode" != "client" ]; then |
|
|
|
|
if [ -z "$db_supported" ]; then |
|
|
|
|
./bin/benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder& |
|
|
|
|
./benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder& |
|
|
|
|
else |
|
|
|
|
./bin/benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder -db_supported& |
|
|
|
|
./benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder -db_supported& |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
done < $config |
|
|
|
@ -61,5 +62,5 @@ done < $config |
|
|
|
|
txgen_disabled=$3 |
|
|
|
|
# Generate transactions |
|
|
|
|
if [ -z "$txgen_disabled" ]; then |
|
|
|
|
./bin/txgen -config_file $config -log_folder $log_folder |
|
|
|
|
./txgen -config_file $config -log_folder $log_folder |
|
|
|
|
fi |
|
|
|
|