-
Notifications
You must be signed in to change notification settings - Fork 0
/
consistency.yml
180 lines (147 loc) · 8.14 KB
/
consistency.yml
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
---
$SUITE_ID$:
bench_consistency: {
compare_pvc_lan: 1700164581,
compare_pvc_wan: 1700150553,
# compare_pvc_lan_sizes: 1701000867
# compare_pvc_lan_sizes: 1701002468
compare_pvc_lan_sizes: 1701004020
}
consistency: { compare_pvc_lan_sizes: 1702421985 }
$ETL$:
twod:
experiments:
bench_consistency: [ compare_pvc_wan, compare_pvc_lan ]
extractors:
MpSpdzResultExtractor: { }
MpSpdzStderrExtractor: { }
ConsistencyExtractor: { }
IgnoreExtractor:
file_regex:
- ^stdout\.log$
transformers:
- name: StatTransformer
groupby_columns: [ run, host_idx, exp_name, 'mpc.script_name', 'mpc.protocol_setup', 'consistency_args.pc', ]
stats:
verification_time_s: [ "consistency_prove_verify_Prove Verify", "spdz_timer_300" ]
player_bw_sent_bytes: [ "consistency_prove_verify_bytes_sent" ]
player_bw_recv_bytes: [ "consistency_prove_verify_bytes_recv" ]
global_data_sent_mb: [ "spdz_global_data_sent" ]
commitment_size_bytes: [ "consistency_gen_commitments_bytes_sent" ]
- df.assign: { com_type: com }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan, 'mpc.script_name': test_sz, com_type: hash, 'consistency_args.pc': pvc, verification_time_s: 39.14, commitment_size_bytes: 1090000 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan, 'mpc.script_name': test_sz, com_type: hash, 'consistency_args.pc': sha3, verification_time_s: 2200.0, commitment_size_bytes: 32 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan, 'mpc.script_name': test_sz, com_type: hash, 'consistency_args.pc': lowmc, verification_time_s: 1100.0, commitment_size_bytes: 32 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan, 'mpc.script_name': test_sz, com_type: com, 'consistency_args.pc': cerebro, verification_time_s: 6255.0, commitment_size_bytes: 67108864 }, ignore_index: True }
loaders:
CsvSummaryLoader: { }
TwoDimensionalScatterPlotLoader:
plot_cols: [ 'mpc.script_name', 'host_idx' ]
plot_cols_values:
mpc.script_name: [ 'test_sz' ]
host_idx: [ 0 ] # only plot one party
x_col: commitment_size_bytes
y_col: verification_time_s
annotation_col: consistency_args.pc
symbol_cols: [ 'exp_name' ]
symbol_cols_values: { 'exp_name': [ 'compare_pvc_lan', 'compare_pvc_wan' ] }
symbol_cols_title: 'Network'
symbol_cols_labels: { exp_name: [ 'LAN', 'WAN' ] }
color_cols: [ 'com_type' ]
color_cols_values: { com_type: [ com, hash ] }
color_cols_title: 'Commitment Type'
color_cols_labels: { com_type: [ 'Cryptographic Commitment', 'Collision-resistant Hash' ] }
annotation_labels:
pvc: 'PVC'
sha3: 'SHA3'
lowmc: 'LowMCHash'
cerebro: 'Cerebro'
kzg: 'Ours (KZG)'
ped: 'Pedersen'
ipa: 'Ours (IPA)'
input_sizes:
experiments:
consistency: [ compare_pvc_lan_sizes ]
extractors:
MpSpdzResultExtractor: { }
MpSpdzStderrExtractor: { }
ConsistencyExtractor: { }
IgnoreExtractor:
file_regex:
- ^stdout\.log$
transformers:
- name: StatTransformer
groupby_columns: [ run, host_idx, exp_name, 'mpc.script_name', 'mpc.protocol_setup', 'n_samples' ]
stats:
verification_time_s: [ "consistency_prove_verify_Prove Verify_mus", "consistency_poly_eval_poly_eval_mus" ]
verification_bandwidth_bytes: [ "consistency_prove_verify_global_bytes", "consistency_poly_eval_poly_eval_global_bytes" ]
player_bw_sent_bytes: [ "consistency_prove_verify_bytes_sent" ]
player_bw_recv_bytes: [ "consistency_prove_verify_bytes_recv" ]
global_data_sent_mb: [ "spdz_global_data_sent" ]
commitment_size_bytes: [ "consistency_gen_commitments_bytes_sent" ]
- name: GroupByAppendTransformer
groupby_columns: [ run, exp_name, 'mpc.script_name', 'mpc.protocol_setup', 'n_samples' ]
metrics:
player_bw_sent_bytes: [ 'sum' ]
- name: AddTransformer
result_col: verification_bandwidth_mb
add_cols: [ verification_bandwidth_bytes, [player_bw_sent_bytes, sum] ]
divisors: [ 1000000, 1000000 ]
- df.assign: { com_type: com }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: pvc, 'n_samples': 512, verification_time_s: 0.07, verification_bandwidth_mb: 2.51 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: pvc, 'n_samples': 8192, verification_time_s: 0.22, verification_bandwidth_mb: 10.9 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: pvc, 'n_samples': 131072, verification_time_s: 2.67, verification_bandwidth_mb: 141.25 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: pvc, 'n_samples': 2097152, verification_time_s: 39.14, verification_bandwidth_mb: 2169.02 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: pvc, 'n_samples': 33554432, verification_time_s: 590.70, verification_bandwidth_mb: 34022.77 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: sha3, 'n_samples': 512, verification_time_s: 0.57, verification_bandwidth_mb: 19.93 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: sha3, 'n_samples': 8192, verification_time_s: 8.16, verification_bandwidth_mb: 300.34 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: sha3, 'n_samples': 131072, verification_time_s: 133.23, verification_bandwidth_mb: 4805.39 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: sha3, 'n_samples': 2097152, verification_time_s: 2200.0, verification_bandwidth_mb: 76900 }, ignore_index: True }
- df.append: { other: { host_idx: 0, exp_name: compare_pvc_lan_sizes, 'mpc.script_name': test_sz, com_type: sha3, 'n_samples': 33554432, verification_time_s: 35500.0, verification_bandwidth_mb: 1230200 }, ignore_index: True }
loaders:
PickleSummaryLoader: {}
CsvSummaryLoader: {}
BarPlotLoader:
figure_size: [5.0, 2.5]
cols_values_filter:
mpc.script_name: [ 'test_sz' ]
host_idx: [ 0 ] # only plot one party
'com_type': [ com, pvc, sha3 ]
'n_samples': [ 512, 8192, 131072, 2097152, 33554432 ]
plot_cols: [ 'mpc.script_name', 'host_idx' ]
group_cols: [ n_samples ]
bar_cols: [ 'com_type' ]
title:
format: "Verification"
plot_cols: []
labels:
512: "$2^{9}$"
8192: "$2^{13}$"
131072: "$2^{17}$"
2097152: "$2^{21}$"
33554432: "$2^{25}$"
com: COM (Ours)
pvc: PVC
sha3: SHA-3
x_axis_label: Input Size
legend:
format: "{}"
cols: ["com_type"]
colors: ["#a6b8d8", "#4c72b0", "#1B4965"]
metrics:
time:
bar_part_cols: [ verification_time_s]
#y_unit_multiplicator: 1 # keep seconds
y_label: "Time [min]"
log_y: True
y_unit_divider: 60 # to minutes
legend_ncol: 3
#y_max: 18
#legend_type: "inline"
#legend_order: [0, 2, 1, 3]
bandwidth:
bar_part_cols: [verification_bandwidth_mb]
y_label: "Bandwidth [MB]"
#y_unit_multiplicator: 1.0e-6 # transform to MB
log_y: True
legend_ncol: 3