You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
682 B
30 lines
682 B
8 months ago
|
#!/bin/bash
|
||
|
|
||
|
function usage {
|
||
|
echo "$0 [cpu-log]"
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
chmod 400 ./id_rsa
|
||
|
path="/home/weihao/sledge/sledge_tree/runtime/tests"
|
||
|
|
||
|
#test single 5k c5 50% max RPS (500)
|
||
|
f1="5k_single_50.txt"
|
||
|
server_log_file="execution_single_5k_50.log"
|
||
|
$path/start.sh $server_log_file >/dev/null 2>&1 &
|
||
|
echo "sledge is running"
|
||
|
./test_rps.sh $f1 120 50 5k.jpg 10000 2>&1 &
|
||
|
pid1=$!
|
||
|
wait -f $pid1
|
||
|
$path/kill_sledge.sh
|
||
|
|
||
|
|
||
|
#test single 5k c5 60% max RPS
|
||
|
f1="5k_single_60.txt"
|
||
|
server_log_file="execution_single_5k_60.log"
|
||
|
$path/start.sh $server_log_file >/dev/null 2>&1 &
|
||
|
echo "sledge is running"
|
||
|
./test_rps.sh $f1 120 60 5k.jpg 10000 2>&1 &
|
||
|
pid1=$!
|
||
|
wait -f $pid1
|
||
|
$path/kill_sledge.sh
|