Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
f08c4bc2
Commit
f08c4bc2
authored
Jul 12, 2022
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Jul 12, 2022
Browse files
make results/ a package and unify typecheck targets
parent
0eace1e9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
15 deletions
+30
-15
experiments/rules.mk
experiments/rules.mk
+2
-8
results/__init__.py
results/__init__.py
+21
-0
results/dctcp.py
results/dctcp.py
+2
-2
results/netperf.py
results/netperf.py
+1
-1
results/nopaxos.py
results/nopaxos.py
+2
-2
results/pcilat.py
results/pcilat.py
+2
-2
No files found.
experiments/rules.mk
View file @
f08c4bc2
...
@@ -27,16 +27,10 @@ lint-python:
...
@@ -27,16 +27,10 @@ lint-python:
--ignore-paths
experiments/simbricks/utils/graphlib.py
\
--ignore-paths
experiments/simbricks/utils/graphlib.py
\
experiments/ results/
experiments/ results/
typecheck-python
:
typecheck-experiments typecheck-results
typecheck-python
:
typecheck-experiments
:
pytype
-j
0
--keep-going
\
pytype
-j
0
--keep-going
\
--exclude
experiments/pyexps/ae/
\
--exclude
experiments/pyexps/ae/
\
experiments/simbricks/utils/graphlib.py
\
experiments/simbricks/utils/graphlib.py
\
--
experiments/
--
experiments/ results/
typecheck-results
:
pytype
-j
0
--keep-going
results/
include
mk/subdir_post.mk
include
mk/subdir_post.mk
results/__init__.py
0 → 100644
View file @
f08c4bc2
# Copyright 2022 Max Planck Institute for Software Systems, and
# National University of Singapore
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
results/dctcp.py
View file @
f08c4bc2
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
import
itertools
import
itertools
import
sys
import
sys
import
utils.
iperf
from
results.utils.iperf
import
parse_
iperf
if
len
(
sys
.
argv
)
!=
2
:
if
len
(
sys
.
argv
)
!=
2
:
print
(
'Usage: dctcp.py OUTDIR'
)
print
(
'Usage: dctcp.py OUTDIR'
)
...
@@ -44,7 +44,7 @@ for k_val in range(0, max_k + 1, k_step):
...
@@ -44,7 +44,7 @@ for k_val in range(0, max_k + 1, k_step):
line
=
[
str
(
k_val
)]
line
=
[
str
(
k_val
)]
for
h
,
mtu
in
configs
:
for
h
,
mtu
in
configs
:
path_pat
=
f
'
{
basedir
}{
h
}
-ib-dumbbell-DCTCPm
{
k_val
}
-
{
mtu
}
'
path_pat
=
f
'
{
basedir
}{
h
}
-ib-dumbbell-DCTCPm
{
k_val
}
-
{
mtu
}
'
res
=
utils
.
iperf
.
parse_iperf
(
path_pat
)
res
=
parse_iperf
(
path_pat
)
if
res
[
'avg'
]
is
None
:
if
res
[
'avg'
]
is
None
:
line
.
append
(
''
)
line
.
append
(
''
)
...
...
results/netperf.py
View file @
f08c4bc2
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
import
sys
import
sys
from
time
import
gmtime
,
strftime
from
time
import
gmtime
,
strftime
from
utils.netperf
import
parse_netperf_run
from
results.
utils.netperf
import
parse_netperf_run
def
fmt_lat
(
lat
):
def
fmt_lat
(
lat
):
...
...
results/nopaxos.py
View file @
f08c4bc2
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
import
sys
import
sys
import
utils.parse_nopaxos
from
results.
utils.parse_nopaxos
import
parse_nopaxos_run
if
len
(
sys
.
argv
)
!=
2
:
if
len
(
sys
.
argv
)
!=
2
:
print
(
'Usage: nopaxos.py OUTDIR'
)
print
(
'Usage: nopaxos.py OUTDIR'
)
...
@@ -43,7 +43,7 @@ for num_c in num_clients:
...
@@ -43,7 +43,7 @@ for num_c in num_clients:
for
seq
in
types_of_seq
:
for
seq
in
types_of_seq
:
path_pat
=
f
'
{
basedir
}
nopaxos-gt-ib-
{
seq
}
-
{
num_c
}
-1.json'
path_pat
=
f
'
{
basedir
}
nopaxos-gt-ib-
{
seq
}
-
{
num_c
}
-1.json'
res
=
utils
.
parse_nopaxos
.
parse_nopaxos_run
(
num_c
,
path_pat
)
res
=
parse_nopaxos_run
(
num_c
,
path_pat
)
#print(path_pat)
#print(path_pat)
if
((
res
[
'throughput'
]
is
None
)
or
(
res
[
'latency'
]
is
None
)):
if
((
res
[
'throughput'
]
is
None
)
or
(
res
[
'latency'
]
is
None
)):
...
...
results/pcilat.py
View file @
f08c4bc2
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
import
sys
import
sys
import
utils.
iperf
from
results.utils.iperf
import
parse_
iperf
if
len
(
sys
.
argv
)
!=
2
:
if
len
(
sys
.
argv
)
!=
2
:
print
(
'Usage: pcilat.py OUTDIR'
)
print
(
'Usage: pcilat.py OUTDIR'
)
...
@@ -45,7 +45,7 @@ for (ht, nt, lab) in configs:
...
@@ -45,7 +45,7 @@ for (ht, nt, lab) in configs:
cols
=
[
str
(
lab
)]
cols
=
[
str
(
lab
)]
for
lat
in
lats
:
for
lat
in
lats
:
path_pat
=
f
'
{
basedir
}
pcilat-
{
ht
}
-
{
nt
}
-switch-
{
lat
}
'
path_pat
=
f
'
{
basedir
}
pcilat-
{
ht
}
-
{
nt
}
-switch-
{
lat
}
'
res
=
utils
.
iperf
.
parse_iperf
(
path_pat
)
res
=
parse_iperf
(
path_pat
)
if
res
[
'avg'
]
is
None
:
if
res
[
'avg'
]
is
None
:
cols
.
append
(
''
)
cols
.
append
(
''
)
...
...
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