From 97b4b0a109d55080c781d9bbecec59b56f7037b5 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 9 Nov 2015 10:16:17 +0100 Subject: Update staticdocs --- inst/web/vignettes/compiled_models.html | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'inst/web/vignettes/compiled_models.html') diff --git a/inst/web/vignettes/compiled_models.html b/inst/web/vignettes/compiled_models.html index 92919da9..7722d95a 100644 --- a/inst/web/vignettes/compiled_models.html +++ b/inst/web/vignettes/compiled_models.html @@ -99,18 +99,18 @@ smb.1 <- summary(mb.1)[-1] rownames(smb.1) <- c("deSolve, not compiled", "Eigenvalue based", "deSolve, compiled") print(smb.1)
##                             min        lq      mean    median        uq
-## deSolve, not compiled 9307.3194 9319.9546 9332.8171 9332.5899 9345.5659
-## Eigenvalue based       855.3608  855.8081  869.4725  856.2555  876.5283
-## deSolve, compiled      686.6143  687.9256  698.0279  689.2369  703.7346
+## deSolve, not compiled 9442.5119 9447.2060 9458.3420 9451.9001 9466.2571
+## Eigenvalue based       868.6312  872.4552  895.3422  876.2792  908.6977
+## deSolve, compiled      691.9663  697.5653  701.1004  703.1643  705.6674
 ##                             max neval cld
-## deSolve, not compiled 9358.5420     3   c
-## Eigenvalue based       896.8012     3  b 
-## deSolve, compiled      718.2324     3 a
-

We see that using the compiled model is by a factor of 13.5 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:

+## deSolve, not compiled 9480.6141 3 c +## Eigenvalue based 941.1163 3 b +## deSolve, compiled 708.1706 3 a +

We see that using the compiled model is by a factor of 13.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:

smb.1["median"]/smb.1["deSolve, compiled", "median"]
##                          median
-## deSolve, not compiled 13.540468
-## Eigenvalue based       1.242324
+## deSolve, not compiled 13.441951
+## Eigenvalue based       1.246194
 ## deSolve, compiled      1.000000
@@ -127,17 +127,17 @@ print(smb.1) smb.2 <- summary(mb.2)[-1] rownames(smb.2) <- c("deSolve, not compiled", "deSolve, compiled") print(smb.2) -
##                             min        lq      mean    median        uq
-## deSolve, not compiled 20.130709 20.147223 20.180429 20.163737 20.205289
-## deSolve, compiled      1.235864  1.255748  1.267458  1.275632  1.283255
-##                             max neval cld
-## deSolve, not compiled 20.246841     3   b
-## deSolve, compiled      1.290878     3  a
+
##                             min       lq      mean    median        uq
+## deSolve, not compiled 20.444632 20.48824 20.557595 20.531857 20.614077
+## deSolve, compiled      1.251733  1.25179  1.275227  1.251846  1.286973
+##                           max neval cld
+## deSolve, not compiled 20.6963     3   b
+## deSolve, compiled      1.3221     3  a
smb.2["median"]/smb.2["deSolve, compiled", "median"]
##                         median
-## deSolve, not compiled 15.80686
+## deSolve, not compiled 16.40126
 ## deSolve, compiled      1.00000
-

Here we get a performance benefit of a factor of 15.8 using the version of the differential equation model compiled from C code using the inline package!

+

Here we get a performance benefit of a factor of 16.4 using the version of the differential equation model compiled from C code using the inline package!

This vignette was built with mkin 0.9.41 on

## R version 3.2.2 (2015-08-14)
 ## Platform: x86_64-pc-linux-gnu (64-bit)
-- 
cgit v1.2.1