Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
536cdeb7
Commit
536cdeb7
authored
Nov 19, 2019
by
Jaco Hofmann
Browse files
Fixes y axis labels for graph 2 and 3
parent
1f7cc6a2
Pipeline
#1667
canceled with stages
in 4 minutes and 47 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
runtime/examples/tapasco-benchmark/plotResults.py
View file @
536cdeb7
...
...
@@ -116,8 +116,8 @@ for name, file in files:
w_s
=
pd
.
Series
([
x
*
1024
*
1024
for
x
in
write
],
index
)
rw_s
=
pd
.
Series
([
x
*
1024
*
1024
for
x
in
readwrite
],
index
)
benchmark_read
[
"{} R
ead
"
.
format
(
name
)]
=
r_s
benchmark_write
[
"{} W
rite
"
.
format
(
name
)]
=
w_s
benchmark_read
[
"{} R"
.
format
(
name
)]
=
r_s
benchmark_write
[
"{} W"
.
format
(
name
)]
=
w_s
benchmark_readwrite
[
"{} RW"
.
format
(
name
)]
=
rw_s
il
=
benchmark
[
"Interrupt Latency"
]
...
...
@@ -156,6 +156,7 @@ data_w = pd.DataFrame(benchmark_write)
data_rw
=
pd
.
DataFrame
(
benchmark_readwrite
)
fig
,
ax
=
plt
.
subplots
(
3
,
1
)
plt
.
subplots_adjust
(
hspace
=
0.25
)
ax
[
0
].
set_xscale
(
"log"
)
data_r
.
plot
(
ax
=
ax
[
0
])
...
...
@@ -176,7 +177,7 @@ ax[1].set_ylabel(r'Latency (\si{\micro\second})')
for
name
,
group
in
job_throughput
.
groupby
(
"Device"
):
group
.
plot
(
ax
=
ax
[
2
],
y
=
"Jobs"
,
x
=
"Threads"
,
label
=
name
)
ax
[
1
].
set_xlabel
(
r
'Threads'
)
ax
[
1
].
set_ylabel
(
r
'Jobs Per Second'
)
ax
[
2
].
set_xlabel
(
r
'Threads'
)
ax
[
2
].
set_ylabel
(
r
'Jobs Per Second'
)
plt
.
savefig
(
'performance.pdf'
,
format
=
'pdf'
,
bbox_inches
=
'tight'
)
\ No newline at end of file
Write
Preview
Supports
Markdown
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