parent
a838bd6620
commit
8e91735e44
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
function usage {
|
||||
echo "$0 [prefix] [port] [times] "
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 3 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
prefix=$1
|
||||
port=$2
|
||||
time=$3
|
||||
|
||||
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||
chmod 400 $path/id_rsa
|
||||
|
||||
input=0
|
||||
server_log="fibnacci_"$prefix".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$time".txt"
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
|
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
function usage {
|
||||
echo "$0 [chain length] [repeat times]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
chain_len=$1
|
||||
repeat_t=$2
|
||||
|
||||
server_log="noop_"$chain_len".log"
|
||||
log="noop"$chain_len"-"$repeat_t".txt"
|
||||
start_script="start-noop"$chain_len".sh"
|
||||
echo $start_script
|
||||
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||
chmod 400 $path/id_rsa
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/$start_script $server_log >/dev/null 2>&1 &"
|
||||
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d 29 "http://10.10.1.1:10000" > $log 2>&1 &
|
||||
pid1=$!
|
||||
wait -f $pid1
|
||||
|
||||
printf "[OK]\n"
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
pushd loadtest
|
||||
./one_shoot.sh
|
||||
popd
|
||||
|
||||
pushd srsf_loadtest
|
||||
./one_shoot.sh
|
||||
popd
|
||||
|
||||
|
||||
pushd loadtest_p80
|
||||
./one_shoot.sh
|
||||
popd
|
||||
|
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [loop count]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
loop_count=$1
|
||||
|
||||
for ((i=1; i <=$loop_count; i++))
|
||||
do
|
||||
for ((j=1; j <=5; j++))
|
||||
do
|
||||
./noop.sh $j $i
|
||||
done
|
||||
done
|
@ -0,0 +1,69 @@
|
||||
#!/bin/bash
|
||||
function usage {
|
||||
echo "$0 [prefix] [port] [times] "
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 3 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
prefix=$1
|
||||
port=$2
|
||||
time=$3
|
||||
|
||||
path="/users/xiaosuGW/sledge-serverless-framework/runtime/tests"
|
||||
chmod 400 $path/id_rsa
|
||||
|
||||
input=0
|
||||
server_log="mem_copy_"$input".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$input"-"$time.txt
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
input=1
|
||||
server_log="mem_copy_"$input".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$input"-"$time.txt
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
input=2
|
||||
server_log="mem_copy_"$input".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$input"-"$time.txt
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
input=4
|
||||
server_log="mem_copy_"$input".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$input"-"$time.txt
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
input=6
|
||||
server_log="mem_copy_"$input".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$input"-"$time.txt
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
input=8
|
||||
server_log="mem_copy_"$input".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$input"-"$time.txt
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
input=10
|
||||
server_log="mem_copy_"$input".log"
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/start.sh $server_log >/dev/null 2>&1 &"
|
||||
hey -c 1 -z 60s -disable-keepalive -m GET -d $input "http://10.10.1.1:$port" > $prefix"_"$input"-"$time.txt
|
||||
|
||||
ssh -o stricthostkeychecking=no -i $path/id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
|
||||
|
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [loop count]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
loop_count=$1
|
||||
|
||||
for ((i=1; i <=$loop_count; i++))
|
||||
do
|
||||
./test_mem_copy.sh chain 10004 $i
|
||||
#./test_mem_copy.sh single 10003 $i
|
||||
#./cpu_insensive.sh chain 10009 $i
|
||||
#./cpu_insensive.sh single 10003 $i
|
||||
done
|
||||
|
Loading…
Reference in new issue