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