-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
157 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from yafs.stats import Stats | ||
import numpy as np | ||
|
||
# for size in [100,1000,10000,100000,1000000]: | ||
time_loops = [["M.EGG", "M.Sensor", "M.Concentration"]] | ||
|
||
|
||
#### ANALYSE FILES YAFS | ||
|
||
police = "cloud" | ||
police = "edge" | ||
|
||
# print depth | ||
# for idx1, depth in enumerate([4, 8, 12, 16]): | ||
for idx1, depth in enumerate([2]): | ||
# 1000, 10000, | ||
for idx2,size in enumerate([1000,10000,100000]): | ||
# size = 100000 | ||
print "DEPTH: %i | TIME: %s" %(depth , size) | ||
s = Stats(defaultPath="Results_%s_%s_%s"%(police,size,depth)) | ||
|
||
#Network | ||
s.showResults2(size, time_loops=time_loops) | ||
|
||
print "\t Bytes transmitted: " ,s.bytes_transmitted() | ||
print "\t Messages transmitted: ",s.count_messages() | ||
|
||
print "\t- Network saturation -" | ||
print "\t\tAverage waiting messages : %i" % s.average_messages_not_transmitted() | ||
print "\t\tPeak of waiting messages : %i" % s.peak_messages_not_transmitted() | ||
print "\t\tTOTAL messages not transmitted: %i" % s.messages_not_transmitted() | ||
|
||
#LOOPS | ||
# res = s.showLoops(time_loops) | ||
# loopstime[depth][idx2]=res[0] | ||
# | ||
# #Print the execution delay | ||
# print s.times("time_total_response") | ||
# | ||
# print "Latency Acc: ", s.df_link["latency"].sum() | ||
print "*"*40 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters