-
Notifications
You must be signed in to change notification settings - Fork 0
/
quick-run.sh
executable file
·30 lines (23 loc) · 1.14 KB
/
quick-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
#!/bin/bash
# Build the source
make prod
# The number of CSV generated for each input
runs_number=2
expected_troughput=20
for initial_nw in 1 64 128 256
do
echo "Running with $initial_nw nw and $expected_troughput throughput"
for (( i=1; i<=$runs_number; i++ ))
do
echo "srv-default-$i-$initial_nw-$expected_troughput.csv..."
./farm.out $initial_nw $expected_troughput > csv/srv-default-$i-$initial_nw-$expected_troughput.csv
echo "srv-constant-$i-$initial_nw-$expected_troughput.csv..."
./farm.out $initial_nw $expected_troughput 2 > csv/srv-constant-$i-$initial_nw-$expected_troughput.csv
echo "srv-reverse-default-$i-$initial_nw-$expected_troughput.csv..."
./farm.out $initial_nw $expected_troughput 3 > csv/srv-reverse-default-$i-$initial_nw-$expected_troughput.csv
echo "srv-lowhigh-$i-$initial_nw-$expected_troughput.csv..."
./farm.out $initial_nw $expected_troughput 4 > csv/srv-lowhigh-$i-$initial_nw-$expected_troughput.csv
echo "srv-highlow-$i-$initial_nw-$expected_troughput.csv..."
./farm.out $initial_nw $expected_troughput 5 > csv/srv-highlow-$i-$initial_nw-$expected_troughput.csv
done
done