2023-01-20 14:52:27 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cool_off_time=120
|
|
|
|
sleep_time=$cool_off_time
|
|
|
|
prefix=$1
|
2023-01-22 07:43:53 +00:00
|
|
|
time="$(\date +"%Y-%m-%d-%Hh%Mm%Ss")"
|
2023-01-20 14:52:27 +00:00
|
|
|
|
|
|
|
run(){
|
|
|
|
duration=$1
|
2023-01-22 07:43:53 +00:00
|
|
|
echo $time, "starting $duration run with output at $prefix"
|
2023-01-20 14:52:27 +00:00
|
|
|
START=$(date +%s)
|
|
|
|
|
|
|
|
sleep $sleep_time
|
2023-01-22 07:43:53 +00:00
|
|
|
./run-waku.sh metal $duration $time lf >> $prefix-$duration-$time 2>&1
|
2023-01-20 14:52:27 +00:00
|
|
|
sleep $sleep_time
|
2023-01-22 07:43:53 +00:00
|
|
|
./run-waku.sh docker $duration $time lf >> $prefix-$duration-$time 2>&1
|
2023-01-20 14:52:27 +00:00
|
|
|
sleep $sleep_time
|
2023-01-22 07:43:53 +00:00
|
|
|
./run-waku.sh kurtosis $duration $time lf >> $prefix-$duration-$time 2>&1
|
|
|
|
|
|
|
|
STOP=$(date +%s)
|
|
|
|
DIFF=$(( $STOP - $START ))
|
|
|
|
echo $time, "lf: $duration done"
|
|
|
|
|
|
|
|
echo "LF: $duration took $DIFF secs; metal, docker, kurtosis; sleep_time=$sleep_time)" >> $prefix-$duration-$time 2>&1
|
|
|
|
echo "LF: $duration took $DIFF secs; metal, docker, kurtosis; sleep_time=$sleep_time)"
|
|
|
|
|
|
|
|
sleep $sleep_time
|
|
|
|
./run-waku.sh metal $duration $time ps >> $prefix-$duration-$time 2>&1
|
|
|
|
sleep $sleep_time
|
|
|
|
./run-waku.sh docker $duration $time ps >> $prefix-$duration-$time 2>&1
|
|
|
|
sleep $sleep_time
|
|
|
|
./run-waku.sh kurtosis $duration $time ps >> $prefix-$duration-$time 2>&1
|
2023-01-20 14:52:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
STOP=$(date +%s)
|
|
|
|
DIFF=$(( $STOP - $START ))
|
2023-01-22 07:43:53 +00:00
|
|
|
echo $time, "ps: $duration done"
|
2023-01-20 14:52:27 +00:00
|
|
|
|
2023-01-22 07:43:53 +00:00
|
|
|
echo "LF+PS: $duration took $DIFF secs; lf + ps; metal, docker, kurtosis; sleep_time=$sleep_time)" >> $prefix-$duration-$time 2>&1
|
|
|
|
echo "LF+PS: $duration took $DIFF secs; lf + ps; metal, docker, kurtosis; sleep_time=$sleep_time)"
|
2023-01-20 14:52:27 +00:00
|
|
|
}
|
|
|
|
|
2023-01-22 07:43:53 +00:00
|
|
|
|
|
|
|
echo "$time: HERE WO GO!"
|
2023-01-20 14:52:27 +00:00
|
|
|
run 32s
|
|
|
|
run 64s
|
|
|
|
run 128s
|
|
|
|
run 256s
|
|
|
|
run 512s
|
|
|
|
run 1024s
|
2023-01-22 07:43:53 +00:00
|
|
|
run 2048s
|