forked from gudengxia/MPC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbenchmark-results.py
94 lines (74 loc) · 1.82 KB
/
benchmark-results.py
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
offlineKeyGenBitMaxSize = [
1556526,
14840526,
147680526,
1476080526,
2952080526,
7380080526,
]
offlineKeyGenFSSMaxSize = [
1538508,
15398508,
153998508,
1539998508,
3079998508,
7699998508,
]
print("offlineKeyGenBitMaxSize is: (MB)")
for v in offlineKeyGenBitMaxSize:
print(v / (1024*1024*2))
print("----")
print("offlineKeyGenFSSMaxSize is: (MB)")
for v in offlineKeyGenFSSMaxSize:
print(v / (1024 * 1024 * 2))
print("----")
commuBitMax = [5183, 40058, 388808, 3876308, 7751308, 19376308]
commuCMax = [11988, 119988, 1199988, 11999988, 23999988, 59999988]
commuBitKre = [40028, 40178, 43740, 77490, 414990, 3789990]
commuBatchKre = [6688, 6838, 10400, 44150, 381650, 3756650]
commuCKre = [740, 15700]
offlineKeyGenCKre = [82360, 1951480]
offlineKeyGenBitKre = [
333536,
548352,
1749236,
14619236,
143319236,
1430319236,
]
offlineKeyGenBatchKre = [174696, 231896, 1590396, 14460396, 143160396, 1430160396]
print("online BitMax is: (MB\n")
for v in commuBitMax:
print(v/1024**2)
print("----")
# for v in commuBitMax20:
# print(v / 1024**2)
# print("----")
print("online fssMax is: (MB\n")
for v in commuCMax:
print(v / 1024**2)
print("----")
print("online BitKre is: (KB\n")
for v in commuBitKre:
print(v / 1024**2)
print("----")
print("online BatchKre is: (KB\n")
for v in commuBatchKre:
print(v / 1024**2)
print("----")
print("online NaiveKre is: (KB\n")
for v in commuCKre:
print(v / 1024**2)
print("----")
print("offlineKeyGenCKreSize is: (MB)")
for v in offlineKeyGenCKre:
print(v / (2*1024**2))
print("----")
print("offlineKeyGenBitKre is: (MB)")
for v in offlineKeyGenBitKre:
print(v / (2*1024**2))
print("----")
print("offlineKeyGenBatchKre is: (MB)")
for v in offlineKeyGenBatchKre:
print(v / (2 * 1024**2))
print("----")