-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiments-2.sh
executable file
·42 lines (27 loc) · 987 Bytes
/
experiments-2.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
#!/usr/bin/env bash
set -e
mkdir -p logs
prog=./src/compgc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(readlink -f build)/lib
times=$1
if [ x"$times" == x"" ]; then
times=100
fi
echo -e "Repeating $times times..."
for type in WDBC CREDIT WDBC_NB NURSERY_NB NURSERY_DT ECG_DT
do
echo -e "\n$type Full\n"
$prog --type $type --times $times --garb-full 2> logs/$type-garb-full.txt &
sleep 1
$prog --type $type --times $times --eval-full 2> logs/$type-eval-full.txt
echo -e "\n$type Offline/Online\n"
rm -f function/garbler_gcs/*
rm -f function/evaluator_gcs/*
./src/compgc --type $type --garb-off 2> logs/$type-garb-off.txt 1>/dev/null &
sleep 1
./src/compgc --type $type --eval-off 2> logs/$type-eval-off.txt 1>/dev/null
echo -e "\n$type Online\n"
./src/compgc --type $type --times $times --garb-on 2> logs/$type-garb-on.txt &
sleep 1
./src/compgc --type $type --times $times --eval-on 2> logs/$type-eval-on.txt
done