From e5d1df9a9b1f0951d7dfbaf24eee4294470b73e2 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 17 Nov 2022 14:54:20 +0100 Subject: Complete update of online docs for v1.2.0 --- docs/articles/web_only/compiled_models.html | 32 +++++++++++++++++------------ 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'docs/articles/web_only/compiled_models.html') diff --git a/docs/articles/web_only/compiled_models.html b/docs/articles/web_only/compiled_models.html index 0b78bb2e..d17d7aeb 100644 --- a/docs/articles/web_only/compiled_models.html +++ b/docs/articles/web_only/compiled_models.html @@ -33,7 +33,7 @@ mkin - 1.1.1 + 1.2.0 @@ -62,11 +62,14 @@ Example evaluations of dimethenamid data from 2018 with nonlinear mixed-effects models
  • - Example evaluation of FOCUS Example Dataset Z + Short demo of the multistart method
  • Performance benefit by using compiled model definitions in mkin
  • +
  • + Example evaluation of FOCUS Example Dataset Z +
  • Calculation of time weighted average concentrations with mkin
  • @@ -74,7 +77,10 @@ Example evaluation of NAFTA SOP Attachment examples
  • - Some benchmark timings + Benchmark timings for mkin +
  • +
  • + Benchmark timings for saem.mmkin
  • @@ -105,7 +111,7 @@

    Performance benefit by using compiled model definitions in mkin

    Johannes Ranke

    -

    2022-10-29

    +

    2022-11-17

    Source: vignettes/web_only/compiled_models.rmd @@ -163,10 +169,10 @@ print("R package rbenchmark is not available") }
    ##                    test replications relative elapsed
    -## 4            analytical            1    1.000   0.188
    -## 3     deSolve, compiled            1    1.628   0.306
    -## 2      Eigenvalue based            1    2.064   0.388
    -## 1 deSolve, not compiled            1   38.894   7.312
    +## 4 analytical 1 1.000 0.218 +## 3 deSolve, compiled 1 1.550 0.338 +## 2 Eigenvalue based 1 1.950 0.425 +## 1 deSolve, not compiled 1 33.041 7.203

    We see that using the compiled model is by more than a factor of 10 faster than using deSolve without compiled code.

    @@ -193,11 +199,11 @@ }
    ## Temporary DLL for differentials generated and loaded
    ##                    test replications relative elapsed
    -## 2     deSolve, compiled            1     1.00   0.441
    -## 1 deSolve, not compiled            1    30.68  13.530
    -

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

    -

    This vignette was built with mkin 1.1.2 on

    -
    ## R version 4.2.1 (2022-06-23)
    +## 2     deSolve, compiled            1    1.000   0.510
    +## 1 deSolve, not compiled            1   26.247  13.386
    +

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

    +

    This vignette was built with mkin 1.2.0 on

    +
    ## R version 4.2.2 (2022-10-31)
     ## Platform: x86_64-pc-linux-gnu (64-bit)
     ## Running under: Debian GNU/Linux 11 (bullseye)
    ## CPU model: AMD Ryzen 7 1700 Eight-Core Processor
    -- cgit v1.2.1