From c6086d1dd97ad2d6420625de7b8009b1b0f85d06 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 18 Nov 2016 15:01:53 +0100 Subject: Static documentation rebuilt by pkgdown::build_site(run_dont_run = TRUE) Using branch 'jranke' on jranke/pkgdown, fixing issues hadley/pgkdown#178 and hadley/pkgdown#213 Remove plot=TRUE from mkinfit calls also in dontrun sections of examples to avoid a flood png files documenting the progress of the fit. --- docs/articles/compiled_models.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'docs/articles/compiled_models.html') diff --git a/docs/articles/compiled_models.html b/docs/articles/compiled_models.html index 1446a357..ce149bc5 100644 --- a/docs/articles/compiled_models.html +++ b/docs/articles/compiled_models.html @@ -41,7 +41,7 @@

Performance benefit by using compiled model definitions in mkin

Johannes Ranke

-

2016-11-17

+

2016-11-18

@@ -78,21 +78,21 @@ mb.1 <- micr print(mb.1)
## Unit: milliseconds
 ##                   expr       min        lq      mean    median        uq
-##  deSolve, not compiled 6251.2433 6291.2435 6315.5160 6331.2438 6347.6524
-##       Eigenvalue based  858.2035  903.1770  926.2132  948.1505  960.2181
-##      deSolve, compiled  721.0067  739.1361  745.9964  757.2656  758.4913
+##  deSolve, not compiled 6341.1795 6363.5977 6373.7748 6386.0158 6390.0724
+##       Eigenvalue based  907.1699  908.8498  921.8335  910.5297  929.1653
+##      deSolve, compiled  747.5311  752.3718  754.2086  757.2125  757.5474
 ##        max neval cld
-##  6364.0611     3   c
-##   972.2856     3  b 
-##   759.7171     3 a
+## 6394.1290 3 c +## 947.8008 3 b +## 757.8823 3 a
autoplot(mb.1)

We see that using the compiled model is by a factor of 8.4 faster than using the R version with the default ode solver, and it is even faster than the Eigenvalue based solution implemented in R which does not need iterative solution of the ODEs:

rownames(smb.1) <- smb.1$expr
 smb.1["median"]/smb.1["deSolve, compiled", "median"]
##                         median
-## deSolve, not compiled 8.360665
-## Eigenvalue based      1.252071
+## deSolve, not compiled 8.433585
+## Eigenvalue based      1.202476
 ## deSolve, compiled     1.000000
@@ -114,11 +114,11 @@ smb.1["median"]/smbprint(mb.2)
## Unit: seconds
 ##                   expr       min        lq      mean    median        uq
-##  deSolve, not compiled 13.601046 13.602861 13.619563 13.604676 13.628821
-##      deSolve, compiled  1.341581  1.346263  1.348298  1.350944  1.351657
-##       max neval cld
-##  13.65297     3   b
-##   1.35237     3  a
+## deSolve, not compiled 13.214250 13.248908 13.384577 13.283565 13.469740 +## deSolve, compiled 1.303868 1.307484 1.332879 1.311099 1.347384 +## max neval cld +## 13.655915 3 b +## 1.383669 3 a
smb.2["median"]/smb.2["deSolve, compiled", "median"]
##   median
 ## 1     NA
-- 
cgit v1.2.1