Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
trainbenchmark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jesper
trainbenchmark
Commits
96034325
Commit
96034325
authored
6 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
update diagram printing
parent
fa1e4339
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
trainbenchmark/trainbenchmark-reporting/individual.R
+14
-3
14 additions, 3 deletions
trainbenchmark/trainbenchmark-reporting/individual.R
trainbenchmark/trainbenchmark-reporting/util.R
+6
-5
6 additions, 5 deletions
trainbenchmark/trainbenchmark-reporting/util.R
with
20 additions
and
8 deletions
trainbenchmark/trainbenchmark-reporting/individual.R
+
14
−
3
View file @
96034325
...
...
@@ -111,6 +111,7 @@ for (phase in phasesPrettified) {
# y axis labels
yaxis
=
nice_y_axis
()
ybreaks
=
yaxis
$
ybreaks
yminor_breaks
=
yaxis
$
yminor_breaks
ylabels
=
yaxis
$
ylabels
for
(
cpage
in
1
:
6
)
{
...
...
@@ -118,10 +119,19 @@ for (phase in phasesPrettified) {
aes
(
x
=
as.factor
(
Model
),
y
=
Time
)
+
labs
(
title
=
paste
(
"Individual query execution time,"
,
phase
,
"phase"
),
x
=
"Model size\n#Elements"
,
y
=
"Execution times [ms]"
)
+
geom_point
(
aes
(
col
=
Tool
,
shape
=
Tool
),
size
=
2.0
)
+
scale_shape_manual
(
values
=
seq
(
0
,
15
))
+
# scale_shape_manual(values = seq(0, 15)) +
scale_shape_manual
(
values
=
c
(
0
,
15
,
1
,
16
,
2
,
17
,
4
,
7
))
+
scale_colour_manual
(
values
=
c
(
"#56B4E9"
,
"#56B4E9"
,
# Sky blue - JastAdd NameLookup
"#009E73"
,
"#009E73"
,
# Bluish green - JastAdd Optimized
"#0072B2"
,
"#0072B2"
,
# Blue - JastAdd Specialized
"#E69F00"
,
# Orange - TinkerGraph
"#D55E00"
,
# Vermillion - VIATRA
"#F0E442"
,
# Yellow
"#CC79A7"
))
+
geom_line
(
aes
(
col
=
Tool
,
group
=
Tool
),
size
=
0.5
)
+
scale_x_discrete
(
breaks
=
xbreaks
,
labels
=
xlabels
)
+
scale_y_log10
(
breaks
=
ybreaks
,
labels
=
ylabels
)
+
scale_y_log10
(
breaks
=
ybreaks
,
minor_breaks
=
yminor_breaks
,
labels
=
ylabels
)
+
facet_grid_paginate
(
~
Workload
,
nrow
=
1
,
ncol
=
1
,
page
=
cpage
,
scale
=
"free"
)
+
guides
(
color
=
guide_legend
(
ncol
=
4
))
+
theme_bw
()
+
...
...
@@ -132,12 +142,13 @@ for (phase in phasesPrettified) {
legend.title
=
element_blank
(),
legend.position
=
"bottom"
,
axis.text
=
element_text
(
size
=
9
)
#, panel.grid.minor = element_blank()
)
print
(
p
)
ggsave
(
plot
=
p
,
filename
=
paste
(
"../diagrams/recent/individual-"
,
phase.filename
,
"-"
,
workloads
[
cpage
],
".pdf"
,
sep
=
""
),
width
=
2
5
0
,
height
=
1
5
0
,
units
=
"mm"
width
=
2
8
0
,
height
=
2
10
,
units
=
"mm"
)
}
...
...
This diff is collapsed.
Click to expand it.
trainbenchmark/trainbenchmark-reporting/util.R
+
6
−
5
View file @
96034325
...
...
@@ -2,17 +2,18 @@ nice_y_axis = function() {
options
(
scipen
=
999
)
# y axis labels
longticks
=
c
(
T
,
F
,
F
,
T
,
F
,
F
,
F
,
F
,
T
)
shortticks
=
2
:
10
longticks
=
c
(
10
)
shortticks
=
c
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
)
range
=
-6
:
6
ooms
=
10
^
range
ybreaks
=
as.vector
(
shortticks
%o%
ooms
)
ylabels
=
as.character
(
ybreaks
*
longticks
)
ybreaks
=
as.vector
(
longticks
%o%
ooms
)
yminor_breaks
=
as.vector
(
shortticks
%o%
ooms
)
ylabels
=
as.character
(
ybreaks
)
ylabels
=
gsub
(
"^0$"
,
""
,
ylabels
)
list
(
ybreaks
=
ybreaks
,
ylabels
=
ylabels
)
list
(
ybreaks
=
ybreaks
,
yminor_breaks
=
yminor_breaks
,
ylabels
=
ylabels
)
}
get_extremes
=
function
(
df
,
phases
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment