Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6537ca32
authored
Nov 23, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added number of execution to analysis.
parent
5b929c0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
analysis.py
+6
-12
No files found.
analysis.py
View file @
6537ca32
...
...
@@ -77,39 +77,33 @@ def main():
s2s
/=
len
(
tasks
)
e2e
/=
len
(
tasks
)
response
/=
len
(
tasks
)
misses_avrg
/=
exec_cnt
outkey
=
round
(
util
,
2
)
try
:
out
[
outkey
]
.
append
((
s2s
,
e2e
,
misses
,
response
))
out
[
outkey
]
.
append
((
s2s
,
e2e
,
misses
,
response
,
exec_cnt
))
except
KeyError
:
out
[
outkey
]
=
[(
s2s
,
e2e
,
misses
,
response
)]
out
[
outkey
]
=
[(
s2s
,
e2e
,
misses
,
response
,
exec_cnt
)]
with
open
(
'analysis/{}_s2s.dat'
.
format
(
args
.
analysis
),
'w'
)
as
s2sfile
:
for
key
,
value
in
out
.
items
():
for
elem
in
value
:
print
(
'{}; {}
'
.
format
(
key
,
elem
[
0
]),
file
=
s2sfile
)
print
(
'{}; {}
; {}'
.
format
(
key
,
elem
[
0
],
elem
[
4
]),
file
=
s2sfile
)
with
open
(
'analysis/{}_e2e.dat'
.
format
(
args
.
analysis
),
'w'
)
as
e2efile
:
for
key
,
value
in
out
.
items
():
for
elem
in
value
:
print
(
'{}; {}'
.
format
(
key
,
elem
[
1
]),
file
=
e2efile
)
print
(
'{}; {}'
.
format
(
key
,
elem
[
1
]
,
elem
[
4
]
),
file
=
e2efile
)
with
open
(
'analysis/{}_misses.dat'
.
format
(
args
.
analysis
),
'w'
)
as
missesfile
:
for
key
,
value
in
out
.
items
():
for
elem
in
value
:
print
(
'{}; {}'
.
format
(
key
,
elem
[
2
]),
file
=
missesfile
)
with
open
(
'analysis/{}_misses_avrg.dat'
.
format
(
args
.
analysis
),
'w'
)
as
missesavrgfile
:
for
key
,
value
in
out
.
items
():
for
elem
in
value
:
print
(
'{}; {}'
.
format
(
key
,
elem
[
3
]),
file
=
missesavrgfile
)
print
(
'{}; {}'
.
format
(
key
,
elem
[
2
],
elem
[
4
]),
file
=
missesfile
)
with
open
(
'analysis/{}_response.dat'
.
format
(
args
.
analysis
),
'w'
)
as
responsefile
:
for
key
,
value
in
out
.
items
():
for
elem
in
value
:
print
(
'{}; {}'
.
format
(
key
,
elem
[
3
]),
file
=
responsefile
)
print
(
'{}; {}'
.
format
(
key
,
elem
[
3
]
,
elem
[
4
]
),
file
=
responsefile
)
if
__name__
==
'__main__'
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment