aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/articles/web_only/compiled_models.html
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-11-24 09:02:26 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-11-24 09:02:26 +0100
commitaf7c6de4db9981ac814362c441fbac22c8faa2d7 (patch)
tree33c2963936ce6c38abe6533afcce3994a08d4ba9 /docs/dev/articles/web_only/compiled_models.html
parent8e953c409e0020ea7e7c2a5121019c42cb66dde4 (diff)
Start online docs of the development version
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