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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stgroup
trainbenchmark
Commits
3aaf203d
Commit
3aaf203d
authored
6 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
generate read phase diagram
parent
1922765d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
trainbenchmark/trainbenchmark-reporting/combined.R
+65
-5
65 additions, 5 deletions
trainbenchmark/trainbenchmark-reporting/combined.R
with
65 additions
and
5 deletions
trainbenchmark/trainbenchmark-reporting/combined.R
+
65
−
5
View file @
3aaf203d
...
@@ -88,7 +88,14 @@ for (scenario in c("inject", "repair")) {
...
@@ -88,7 +88,14 @@ for (scenario in c("inject", "repair")) {
workloadSizes
=
sizes
[[
"Repair"
]]
workloadSizes
=
sizes
[[
"Repair"
]]
# filter the dataframe to the current phase
# filter the dataframe to the current phase
if
(
phase
==
"Read"
)
{
df
=
times.plot
[
times.plot
$
Phase
==
phase
,]
df
=
times.plot
[
times.plot
$
Phase
==
phase
,]
df
=
df
[
df
$
Tool
!=
"TinkerGraph"
,]
df
=
df
[
df
$
Tool
!=
"VIATRA (Incremental)"
,]
}
else
{
df
=
times.plot
[
times.plot
$
Phase
==
phase
,]
}
# do not visualize empty data sets
# do not visualize empty data sets
if
(
nrow
(
df
)
==
0
)
{
if
(
nrow
(
df
)
==
0
)
{
...
@@ -175,6 +182,58 @@ for (scenario in c("inject", "repair")) {
...
@@ -175,6 +182,58 @@ for (scenario in c("inject", "repair")) {
)
)
fnTmp
<-
paste
(
"../diagrams/recent/benchmark/"
,
scenario
,
"/"
,
phase.filename
,
"-"
,
scenario
,
"-tmp.pdf"
,
sep
=
""
)
fnTmp
<-
paste
(
"../diagrams/recent/benchmark/"
,
scenario
,
"/"
,
phase.filename
,
"-"
,
scenario
,
"-tmp.pdf"
,
sep
=
""
)
fn
<-
paste
(
"../diagrams/recent/benchmark/"
,
scenario
,
"/"
,
phase.filename
,
"-"
,
scenario
,
".pdf"
,
sep
=
""
)
fn
<-
paste
(
"../diagrams/recent/benchmark/"
,
scenario
,
"/"
,
phase.filename
,
"-"
,
scenario
,
".pdf"
,
sep
=
""
)
if
(
phase
==
"Read"
)
{
p
=
p
+
scale_y_log10
(
breaks
=
ybreaks
,
minor_breaks
=
yminor_breaks
,
labels
=
ylabels
,
limits
=
c
(
9e-1
,
3e4
),
expand
=
c
(
0
,
0
))
+
scale_colour_manual
(
values
=
c
(
"#56B4E9"
,
"#56B4E9"
,
# Sky blue - Name Lookup
"#009E73"
,
"#009E73"
,
# Bluish green - Intrinsic References
"#0072B2"
,
"#0072B2"
,
# Blue - Manual Serialization
"#E69F00"
,
"#E69F00"
,
# Orange - RelAST
"#D55E00"
,
# Vermillion - Tinkergraph
"#CC79A7"
,
# ReddishPurple - VIATRA
"#F0E442"
# Yellow
),
labels
=
c
(
"Name Lookup (Reflection-based Serializer)"
,
"Name Lookup (Reflection-based Serializer, Incremental)"
,
"Intrinsic References (Modified Reflection-based Serializer)"
,
"Intrinsic References (Modified Reflection-based Serializer, Incremental)"
,
"Relational RAGs (Hand-written Serializer)"
,
"Relational RAGs (Hand-written Serializer, Incremental)"
,
"Relational RAGs (Generated Serializer)"
,
"Relational RAGs (Generated Serializer, Incremental)"
)
)
+
scale_shape_manual
(
values
=
c
(
1
,
16
,
0
,
15
,
2
,
17
,
5
,
18
,
8
,
10
),
labels
=
c
(
"Name Lookup (Reflection-based Serializer)"
,
"Name Lookup (Reflection-based Serializer, Incremental)"
,
"Intrinsic References (Modified Reflection-based Serializer)"
,
"Intrinsic References (Modified Reflection-based Serializer, Incremental)"
,
"Relational RAGs (Hand-written Serializer)"
,
"Relational RAGs (Hand-written Serializer, Incremental)"
,
"Relational RAGs (Generated Serializer)"
,
"Relational RAGs (Generated Serializer, Incremental)"
),
guide
=
guide_legend
(
ncol
=
2
,
nrow
=
4
)
)
+
theme
(
plot.title
=
element_blank
(),
# element_text(hjust = 0.5),
# text = element_text(family="Open Sans", size = 10),
# legend.key = element_blank(),
legend.title
=
element_blank
(),
strip.text.x
=
element_blank
(),
legend.position
=
"right"
,
# "none", #
axis.text
=
element_text
(
size
=
11
)
#, panel.grid.minor = element_blank()
)
ggsave
(
plot
=
p
,
filename
=
fnTmp
,
width
=
200
,
height
=
100
,
units
=
"mm"
)
}
else
{
ggsave
(
ggsave
(
plot
=
p
,
plot
=
p
,
filename
=
fnTmp
,
filename
=
fnTmp
,
...
@@ -182,6 +241,7 @@ for (scenario in c("inject", "repair")) {
...
@@ -182,6 +241,7 @@ for (scenario in c("inject", "repair")) {
height
=
130
,
height
=
130
,
units
=
"mm"
units
=
"mm"
)
)
}
embed_fonts
(
fnTmp
,
outfile
=
fn
)
embed_fonts
(
fnTmp
,
outfile
=
fn
)
file.remove
(
fnTmp
)
file.remove
(
fnTmp
)
...
...
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