forked from ftramer/slalom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_all.sh
executable file
·123 lines (99 loc) · 5.48 KB
/
run_all.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
mkdir -p results
################
## Benchmarks ##
################
python -u -m python.slalom.scripts.benchmarks &> results/benchmarks.txt
sleep 5
python -u -m python.slalom.scripts.benchmarks --use_sgx &> results/benchmarks_sgx.txt
sleep 5
python -u -m python.slalom.scripts.benchmarks --threads=4 &> results/benchmarks_threaded_4.txt
sleep 5
python -u -m python.slalom.scripts.benchmarks --threads=8 &> results/benchmarks_threaded_8.txt
sleep 5
###########
## VGG16 ##
###########
# forward pass
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=1 --max_num_batches=4 &> results/vgg_full_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=1 --max_num_batches=4 --use_sgx &> results/vgg_full_sgx.txt
sleep 5
# verify
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=16 --max_num_batches=4 --verify &> results/vgg_full_verif_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=16 --max_num_batches=4 --verify --use_sgx &> results/vgg_full_verif_sgx.txt
sleep 5
# verify batched
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=16 --max_num_batches=4 --verify --verify_batched &> results/vgg_full_verif_batched_cpu.txt
sleep 5
# verify preproc
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=16 --max_num_batches=4 --verify --preproc &> results/vgg_full_verif_preproc_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=16 --max_num_batches=4 --verify --preproc --use_sgx &> results/vgg_full_verif_preproc_sgx.txt
sleep 5
# slalom privacy
python -u -m python.slalom.scripts.eval_slalom vgg_16 --batch_size=16 --max_num_batches=4 --blinding &> results/vgg_full_slalom_privacy_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval_slalom vgg_16 --batch_size=16 --max_num_batches=4 --blinding --use_sgx &> results/vgg_full_slalom_privacy_sgx.txt
sleep 5
# slalom privacy+integrity
python -u -m python.slalom.scripts.eval_slalom vgg_16 --batch_size=16 --max_num_batches=4 --blinding --integrity &> results/vgg_full_slalom_privacy_integrity_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval_slalom vgg_16 --batch_size=16 --max_num_batches=4 --blinding --integrity --use_sgx &> results/vgg_full_slalom_privacy_integrity_sgx.txt
sleep 5
################
## VGG No Top ##
################
# forward pass
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=1 --max_num_batches=4 --use_sgx --no_top &> results/vgg_notop_sgx.txt
sleep 5
# verif
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=16 --max_num_batches=4 --use_sgx --no_top --verify &> results/vgg_notop_verif_sgx.txt
sleep 5
# verif preproc
python -u -m python.slalom.scripts.eval vgg_16 sgxdnn --batch_size=16 --max_num_batches=4 --use_sgx --no_top --verify --preproc &> results/vgg_notop_verif_preproc_sgx.txt
sleep 5
###############
## MobileNet ##
###############
# forward pass
python -u -m python.slalom.scripts.eval mobilenet sgxdnn --batch_size=1 --max_num_batches=4 &> results/mobilenet_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval mobilenet sgxdnn --batch_size=1 --max_num_batches=4 --use_sgx &> results/mobilenet_sgx.txt
sleep 5
# verify
python -u -m python.slalom.scripts.eval mobilenet sgxdnn --batch_size=16 --max_num_batches=4 --verify &> results/mobilenet_verif_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval mobilenet sgxdnn --batch_size=16 --max_num_batches=4 --verify --use_sgx &> results/mobilenet_verif_sgx.txt
sleep 5
# verify batched
python -u -m python.slalom.scripts.eval mobilenet sgxdnn --batch_size=16 --max_num_batches=4 --verify --verify_batched &> results/mobilenet_verif_batched_cpu.txt
sleep 5
# verify preproc
python -u -m python.slalom.scripts.eval mobilenet sgxdnn --batch_size=16 --max_num_batches=4 --verify --preproc &> results/mobilenet_verif_preproc_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval mobilenet sgxdnn --batch_size=16 --max_num_batches=4 --verify --preproc --use_sgx &> results/mobilenet_verif_preproc_sgx.txt
sleep 5
# slalom privacy
python -u -m python.slalom.scripts.eval_slalom mobilenet --batch_size=16 --max_num_batches=4 --blinding &> results/mobilenet_slalom_privacy_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval_slalom mobilenet --batch_size=16 --max_num_batches=4 --blinding --use_sgx &> results/mobilenet_slalom_privacy_sgx.txt
sleep 5
###################
## MobileNet-Sep ##
###################
# verify preproc
python -u -m python.slalom.scripts.eval mobilenet_sep sgxdnn --batch_size=16 --max_num_batches=4 --verify --preproc &> results/mobilenet_sep_verif_preproc_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval mobilenet_sep sgxdnn --batch_size=16 --max_num_batches=4 --verify --preproc --use_sgx &> results/mobilenet_sep_verif_preproc_sgx.txt
sleep 5
# slalom privacy
python -u -m python.slalom.scripts.eval_slalom mobilenet_sep --batch_size=16 --max_num_batches=4 --blinding &> results/mobilenet_sep_slalom_privacy_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval_slalom mobilenet_sep --batch_size=16 --max_num_batches=4 --blinding --use_sgx &> results/mobilenet_sep_slalom_privacy_sgx.txt
sleep 5
# slalom privacy+integrity
python -u -m python.slalom.scripts.eval_slalom mobilenet_sep --batch_size=16 --max_num_batches=4 --blinding --integrity &> results/mobilenet_sep_slalom_privacy_integrity_cpu.txt
sleep 5
python -u -m python.slalom.scripts.eval_slalom mobilenet_sep --batch_size=16 --max_num_batches=4 --blinding --integrity --use_sgx &> results/mobilenet_sep_slalom_privacy_integrity_sgx.txt
sleep 5