diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2021-02-15 17:05:19 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2021-02-15 17:05:19 +0100 |
commit | 11c7f26dd6c532d977d9875f3c16952c7bba37ca (patch) | |
tree | 03393f3e63f1db688166e82fff7a8d16bb239154 /docs/articles/web_only/compiled_models.html | |
parent | c4f327e62f19c0a3fc77a538f7cf0c2c619019d8 (diff) | |
parent | a9427a09abdf7ce9aaeae7c7190f90c8f2e5ef52 (diff) |
Merge branch 'master' into saemix
Diffstat (limited to 'docs/articles/web_only/compiled_models.html')
-rw-r--r-- | docs/articles/web_only/compiled_models.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/articles/web_only/compiled_models.html b/docs/articles/web_only/compiled_models.html index e45655b6..ce8d8481 100644 --- a/docs/articles/web_only/compiled_models.html +++ b/docs/articles/web_only/compiled_models.html @@ -31,7 +31,7 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../../index.html">mkin</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">1.0.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">1.0.3</span> </span> </div> @@ -94,13 +94,13 @@ - </header><div class="row"> + </header><script src="compiled_models_files/header-attrs-2.6/header-attrs.js"></script><script src="compiled_models_files/accessible-code-block-0.0.1/empty-anchor.js"></script><div class="row"> <div class="col-md-9 contents"> <div class="page-header toc-ignore"> <h1 data-toc-skip>Performance benefit by using compiled model definitions in mkin</h1> <h4 class="author">Johannes Ranke</h4> - <h4 class="date">2021-02-03</h4> + <h4 class="date">2021-02-15</h4> <small class="dont-index">Source: <a href="https://github.com/jranke/mkin/blob/master/vignettes/web_only/compiled_models.rmd"><code>vignettes/web_only/compiled_models.rmd</code></a></small> <div class="hidden name"><code>compiled_models.rmd</code></div> @@ -159,9 +159,9 @@ <span class="op">}</span></code></pre></div> <pre><code>## test replications relative elapsed ## 4 analytical 1 1.000 0.181 -## 3 deSolve, compiled 1 1.818 0.329 -## 2 Eigenvalue based 1 2.061 0.373 -## 1 deSolve, not compiled 1 43.923 7.950</code></pre> +## 3 deSolve, compiled 1 1.812 0.328 +## 2 Eigenvalue based 1 2.088 0.378 +## 1 deSolve, not compiled 1 45.923 8.312</code></pre> <p>We see that using the compiled model is by more than a factor of 10 faster than using deSolve without compiled code.</p> </div> <div id="model-without-analytical-solution" class="section level2"> @@ -188,13 +188,13 @@ <span class="op">}</span></code></pre></div> <pre><code>## Temporary DLL for differentials generated and loaded</code></pre> <pre><code>## test replications relative elapsed -## 2 deSolve, compiled 1 1.000 0.474 -## 1 deSolve, not compiled 1 30.179 14.305</code></pre> -<p>Here we get a performance benefit of a factor of 30 using the version of the differential equation model compiled from C code!</p> -<p>This vignette was built with mkin 1.0.0 on</p> +## 2 deSolve, compiled 1 1.000 0.486 +## 1 deSolve, not compiled 1 31.597 15.356</code></pre> +<p>Here we get a performance benefit of a factor of 32 using the version of the differential equation model compiled from C code!</p> +<p>This vignette was built with mkin 1.0.3 on</p> <pre><code>## R version 4.0.3 (2020-10-10) ## Platform: x86_64-pc-linux-gnu (64-bit) -## Running under: Debian GNU/Linux 10 (buster)</code></pre> +## Running under: Debian GNU/Linux bullseye/sid</code></pre> <pre><code>## CPU model: AMD Ryzen 7 1700 Eight-Core Processor</code></pre> </div> </div> |