-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment.py
29 lines (24 loc) · 975 Bytes
/
experiment.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
import apps
if __name__ == "__main__":
nett = []
shmt = []
dockernett = []
dockershmt = []
netserializet = []
dockernetserializet = []
for i in range(10):
nett.append(apps.net.main())
shmt.append(apps.shm.main())
dockernett.append(apps.dockernet.main())
dockershmt.append(apps.dockershm.main())
netserializet.append(apps.netserialize.main())
dockernetserializet.append(apps.dockernetserialize.main())
print("net", nett)
print("shm", shmt)
print("dockernet", dockernett)
print("dockershm", dockershmt)
print("netserialize", netserializet)
print("dockernetserialize", dockernetserializet)
avg = lambda x: sum(x) / len(x)
print("""averages - net: {}, shm: {}, dockernet: {}, dockershm: {}, netserialize: {}, dockernetserialize: {}"""
.format(avg(nett), avg(shmt), avg(dockernett), avg(dockershmt), avg(netserializet), avg(dockernetserializet)))