diff options
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 a411dad1..3c53b40a 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.3</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">1.2.4</span> </span> </div> @@ -134,7 +134,7 @@ definitions in mkin</h1> <h4 data-toc-skip class="author">Johannes Ranke</h4> - <h4 data-toc-skip class="date">2023-04-20</h4> + <h4 data-toc-skip class="date">2023-05-19</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> @@ -213,10 +213,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.103</span></span> -<span><span class="co">## 3 deSolve, compiled 1 1.291 0.133</span></span> -<span><span class="co">## 2 Eigenvalue based 1 1.718 0.177</span></span> -<span><span class="co">## 1 deSolve, not compiled 1 22.136 2.280</span></span></code></pre> +<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> <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,12 +247,12 @@ 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.171</span></span> -<span><span class="co">## 1 deSolve, not compiled 1 24.199 4.138</span></span></code></pre> -<p>Here we get a performance benefit of a factor of 24 using the version +<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 of the differential equation model compiled from C code!</p> -<p>This vignette was built with mkin 1.2.3 on</p> -<pre><code><span><span class="co">## R version 4.2.3 (2023-03-15)</span></span> +<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> <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> |