aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/articles/web_only/compiled_models.html
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2023-02-13 05:19:08 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2023-02-13 05:19:08 +0100
commit8d1a84ac2190538ed3bac53a303064e281595868 (patch)
treeacb894d85ab7ec87c4911c355a5264a77e08e34b /docs/dev/articles/web_only/compiled_models.html
parent51d63256a7b3020ee11931d61b4db97b9ded02c0 (diff)
parent4200e566ad2600f56bc3987669aeab88582139eb (diff)
Merge branch 'main' into custom_lsoda_call
Diffstat (limited to 'docs/dev/articles/web_only/compiled_models.html')
-rw-r--r--docs/dev/articles/web_only/compiled_models.html25
1 files changed, 14 insertions, 11 deletions
diff --git a/docs/dev/articles/web_only/compiled_models.html b/docs/dev/articles/web_only/compiled_models.html
index ade86bc5..e9d80420 100644
--- a/docs/dev/articles/web_only/compiled_models.html
+++ b/docs/dev/articles/web_only/compiled_models.html
@@ -34,7 +34,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../../index.html">mkin</a>
- <span class="version label label-info" data-toggle="tooltip" data-placement="bottom" title="In-development version">1.2.0</span>
+ <span class="version label label-info" data-toggle="tooltip" data-placement="bottom" title="In-development version">1.2.2</span>
</span>
</div>
@@ -78,7 +78,10 @@
<a href="../../articles/web_only/NAFTA_examples.html">Example evaluation of NAFTA SOP Attachment examples</a>
</li>
<li>
- <a href="../../articles/web_only/benchmarks.html">Some benchmark timings</a>
+ <a href="../../articles/web_only/benchmarks.html">Benchmark timings for mkin</a>
+ </li>
+ <li>
+ <a href="../../articles/web_only/saem_benchmarks.html">Benchmark timings for saem.mmkin</a>
</li>
</ul>
</li>
@@ -109,7 +112,7 @@
<h1 data-toc-skip>Performance benefit by using compiled model definitions in mkin</h1>
<h4 data-toc-skip class="author">Johannes Ranke</h4>
- <h4 data-toc-skip class="date">2022-11-01</h4>
+ <h4 data-toc-skip class="date">2022-11-24</h4>
<small class="dont-index">Source: <a href="https://github.com/jranke/mkin/blob/HEAD/vignettes/web_only/compiled_models.rmd" class="external-link"><code>vignettes/web_only/compiled_models.rmd</code></a></small>
<div class="hidden name"><code>compiled_models.rmd</code></div>
@@ -167,10 +170,10 @@
<span> <span class="fu"><a href="https://rdrr.io/r/base/print.html" class="external-link">print</a></span><span class="op">(</span><span class="st">"R package rbenchmark is not available"</span><span class="op">)</span></span>
<span><span class="op">}</span></span></code></pre></div>
<pre><code><span><span class="co">## test replications relative elapsed</span></span>
-<span><span class="co">## 4 analytical 1 1.000 0.186</span></span>
-<span><span class="co">## 3 deSolve, compiled 1 1.656 0.308</span></span>
-<span><span class="co">## 2 Eigenvalue based 1 2.102 0.391</span></span>
-<span><span class="co">## 1 deSolve, not compiled 1 38.968 7.248</span></span></code></pre>
+<span><span class="co">## 4 analytical 1 1.000 0.221</span></span>
+<span><span class="co">## 3 deSolve, compiled 1 1.561 0.345</span></span>
+<span><span class="co">## 2 Eigenvalue based 1 1.932 0.427</span></span>
+<span><span class="co">## 1 deSolve, not compiled 1 33.629 7.432</span></span></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 class="section level2">
@@ -197,10 +200,10 @@
<span><span class="op">}</span></span></code></pre></div>
<pre><code><span><span class="co">## Temporary DLL for differentials generated and loaded</span></span></code></pre>
<pre><code><span><span class="co">## test replications relative elapsed</span></span>
-<span><span class="co">## 2 deSolve, compiled 1 1.000 0.452</span></span>
-<span><span class="co">## 1 deSolve, not compiled 1 29.431 13.303</span></span></code></pre>
-<p>Here we get a performance benefit of a factor of 29 using the version of the differential equation model compiled from C code!</p>
-<p>This vignette was built with mkin 1.2.0 on</p>
+<span><span class="co">## 2 deSolve, compiled 1 1.000 0.482</span></span>
+<span><span class="co">## 1 deSolve, not compiled 1 27.865 13.431</span></span></code></pre>
+<p>Here we get a performance benefit of a factor of 28 using the version of the differential equation model compiled from C code!</p>
+<p>This vignette was built with mkin 1.2.2 on</p>
<pre><code><span><span class="co">## R version 4.2.2 (2022-10-31)</span></span>
<span><span class="co">## Platform: x86_64-pc-linux-gnu (64-bit)</span></span>
<span><span class="co">## Running under: Debian GNU/Linux 11 (bullseye)</span></span></code></pre>

Contact - Imprint