Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Guillaume Perréal
easy16S
Commits
1a13d764
Commit
1a13d764
authored
Sep 25, 2018
by
Midoux Cedric
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab-ssh.irstea.fr:cedric.midoux/easy16S
Conflicts: perf.R
parents
f5d0ad73
b0f10e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
perf.R
perf.R
+10
-3
No files found.
perf.R
View file @
1a13d764
library
(
microbenchmark
)
mb
<-
microbenchmark
(
mb
<-
microbenchmark
::
microbenchmark
(
"clear"
=
{
rm
(
list
=
ls
())
lapply
(
paste
(
'package:'
,
names
(
sessionInfo
()
$
otherPkgs
),
sep
=
""
),
detach
,
character.only
=
TRUE
,
unload
=
TRUE
)
},
"load packages"
=
{
library
(
shinydashboard
)
library
(
glue
)
...
...
@@ -68,7 +72,10 @@ mb <- microbenchmark(
p
<-
plot_clust
(
physeq
=
data
,
dist
=
"unifrac"
,
method
=
"ward.D2"
,
color
=
"EnvType"
)
plot
(
p
)
},
times
=
100
,
unit
=
's'
,
order
=
'
inorder
'
,
warmup
=
0
)
times
=
100
,
unit
=
"s"
,
control
=
list
(
order
=
"
inorder
"
)
)
mb
autoplot
(
mb
)
save
(
mb
,
file
=
"benchmark.RData"
)
mb_plot
<-
microbenchmark
::
autoplot.microbenchmark
(
mb
)
ggsave
(
"benchmark.png"
,
plot
=
mb_plot
)
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