-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·51 lines (40 loc) · 1.48 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
cool_off_time=120
sleep_time=$cool_off_time
prefix=$1
time="$(\date +"%Y-%m-%d-%Hh%Mm%Ss")"
run(){
duration=$1
echo $time, "starting $duration run with output at $prefix"
START=$(date +%s)
sleep $sleep_time
./run-waku.sh metal $duration $time lf >> $prefix-$duration-$time 2>&1
sleep $sleep_time
./run-waku.sh docker $duration $time lf >> $prefix-$duration-$time 2>&1
sleep $sleep_time
./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
STOP=$(date +%s)
DIFF=$(( $STOP - $START ))
echo $time, "ps: $duration done"
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)"
}
echo "$time: HERE WO GO!"
run 32s
run 64s
run 128s
run 256s
run 512s
run 1024s
run 2048s