aboutsummaryrefslogtreecommitdiff
path: root/docs/articles/web_only/compiled_models.html
diff options
context:
space:
mode:
authorRanke Johannes <johannes.ranke@agroscope.admin.ch>2023-10-30 17:09:21 +0100
committerRanke Johannes <johannes.ranke@agroscope.admin.ch>2023-10-30 17:09:21 +0100
commitb7901aac76df753ec1213cb02bebea055965ee87 (patch)
treee907e87d81aa07f19e8387acca612026337add75 /docs/articles/web_only/compiled_models.html
parent193b46af027c7b30abf7cf215d77517370e5fb2c (diff)
Update static docs
Diffstat (limited to 'docs/articles/web_only/compiled_models.html')
-rw-r--r--docs/articles/web_only/compiled_models.html31
1 files changed, 17 insertions, 14 deletions
diff --git a/docs/articles/web_only/compiled_models.html b/docs/articles/web_only/compiled_models.html
index 3c53b40a..1aa88e05 100644
--- a/docs/articles/web_only/compiled_models.html
+++ b/docs/articles/web_only/compiled_models.html
@@ -33,7 +33,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.2.4</span>
+ <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">1.2.6</span>
</span>
</div>
@@ -74,6 +74,9 @@
<a href="../../articles/prebuilt/2022_dmta_pathway.html">Testing hierarchical pathway kinetics with residue data on dimethenamid and dimethenamid-P</a>
</li>
<li>
+ <a href="../../articles/prebuilt/2023_mesotrione_parent.html">Testing covariate modelling in hierarchical parent degradation kinetics with residue data on mesotrione</a>
+ </li>
+ <li>
<a href="../../articles/prebuilt/2022_cyan_pathway.html">Testing hierarchical pathway kinetics with residue data on cyantraniliprole</a>
</li>
<li>
@@ -134,7 +137,7 @@ definitions in mkin</h1>
<h4 data-toc-skip class="author">Johannes
Ranke</h4>
- <h4 data-toc-skip class="date">2023-05-19</h4>
+ <h4 data-toc-skip class="date">2023-10-30</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>
@@ -152,7 +155,7 @@ compiled from autogenerated C code when defining a model using mkinmod.
Starting from version 0.9.49.9, the <code><a href="../../reference/mkinmod.html">mkinmod()</a></code> function
checks for presence of a compiler using</p>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
-<code class="sourceCode R"><span><span class="fu">pkgbuild</span><span class="fu">::</span><span class="fu"><a href="https://r-lib.github.io/pkgbuild/reference/has_compiler.html" class="external-link">has_compiler</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
+<code class="sourceCode R"><span><span class="fu">pkgbuild</span><span class="fu">::</span><span class="fu"><a href="https://pkgbuild.r-lib.org/reference/has_compiler.html" class="external-link">has_compiler</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p>In previous versions, it used <code>Sys.which("gcc")</code> for this
check.</p>
<p>On Linux, you need to have the essential build tools like make and
@@ -213,10 +216,10 @@ solution is also implemented, which is included in the tests below.</p>
<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.099</span></span>
-<span><span class="co">## 3 deSolve, compiled 1 1.303 0.129</span></span>
-<span><span class="co">## 2 Eigenvalue based 1 1.697 0.168</span></span>
-<span><span class="co">## 1 deSolve, not compiled 1 21.475 2.126</span></span></code></pre>
+<span><span class="co">## 4 analytical 1 1.000 0.213</span></span>
+<span><span class="co">## 3 deSolve, compiled 1 1.418 0.302</span></span>
+<span><span class="co">## 2 Eigenvalue based 1 2.000 0.426</span></span>
+<span><span class="co">## 1 deSolve, not compiled 1 23.535 5.013</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>
@@ -247,15 +250,15 @@ compiled code is available.</p>
<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.165</span></span>
-<span><span class="co">## 1 deSolve, not compiled 1 22.673 3.741</span></span></code></pre>
-<p>Here we get a performance benefit of a factor of 23 using the version
+<span><span class="co">## 2 deSolve, compiled 1 1.000 0.492</span></span>
+<span><span class="co">## 1 deSolve, not compiled 1 20.398 10.036</span></span></code></pre>
+<p>Here we get a performance benefit of a factor of 20 using the version
of the differential equation model compiled from C code!</p>
-<p>This vignette was built with mkin 1.2.4 on</p>
-<pre><code><span><span class="co">## R version 4.3.0 Patched (2023-05-18 r84448)</span></span>
+<p>This vignette was built with mkin 1.2.6 on</p>
+<pre><code><span><span class="co">## R version 4.3.1 (2023-06-16)</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 12 (bookworm)</span></span></code></pre>
-<pre><code><span><span class="co">## CPU model: AMD Ryzen 9 7950X 16-Core Processor</span></span></code></pre>
+<span><span class="co">## Running under: Ubuntu 22.04.3 LTS</span></span></code></pre>
+<pre><code><span><span class="co">## CPU model: Intel(R) Xeon(R) Gold 6134 CPU @ 3.20GHz</span></span></code></pre>
</div>
</div>

Contact - Imprint