aboutsummaryrefslogtreecommitdiff
path: root/vignettes/web_only/benchmarks.html
diff options
context:
space:
mode:
Diffstat (limited to 'vignettes/web_only/benchmarks.html')
-rw-r--r--vignettes/web_only/benchmarks.html136
1 files changed, 56 insertions, 80 deletions
diff --git a/vignettes/web_only/benchmarks.html b/vignettes/web_only/benchmarks.html
index 821399e4..043b777f 100644
--- a/vignettes/web_only/benchmarks.html
+++ b/vignettes/web_only/benchmarks.html
@@ -11,7 +11,7 @@
<meta name="author" content="Johannes Ranke" />
-<meta name="date" content="2020-05-12" />
+<meta name="date" content="2020-05-13" />
<title>Benchmark timings for mkin</title>
@@ -1583,29 +1583,12 @@ div.tocify {
<h1 class="title toc-ignore">Benchmark timings for mkin</h1>
<h4 class="author">Johannes Ranke</h4>
-<h4 class="date">2020-05-12</h4>
+<h4 class="date">2020-05-13</h4>
</div>
-<p>Each system is characterized by its CPU type, the operating system type and the mkin version. Currently only values for one system are available.</p>
-<pre class="r"><code>cpu_model &lt;- benchmarkme::get_cpu()$model_name
-operating_system &lt;- Sys.info()[[&quot;sysname&quot;]]
-mkin_version &lt;- as.character(packageVersion(&quot;mkin&quot;))
-system_string &lt;- paste0(operating_system, &quot;, &quot;, cpu_model, &quot;, mkin version &quot;, mkin_version)
-load(&quot;~/git/mkin/vignettes/web_only/mkin_benchmarks.rda&quot;)
-mkin_benchmarks[system_string, c(&quot;CPU&quot;, &quot;OS&quot;, &quot;mkin&quot;)] &lt;-
- c(cpu_model, operating_system, mkin_version)
-
-if (mkin_version &gt; &quot;0.9.48.1&quot;) {
- mmkin_bench &lt;- function(models, datasets, error_model = &quot;const&quot;) {
- mmkin(models, datasets, error_model = error_model, cores = 1, quiet = TRUE)
- }
-} else {
- mmkin_bench &lt;- function(models, datasets, error_model = NULL) {
- mmkin(models, datasets, reweight.method = error_model, cores = 1, quiet = TRUE)
- }
-}</code></pre>
+<p>Each system is characterized by its CPU type, the operating system type and the mkin version. Currently only values for one system are available. A compiler was available, so if no analytical solution was available, compiled ODE models are used.</p>
<div id="test-cases" class="section level2">
<h2>Test cases</h2>
<p>Parent only:</p>
@@ -1619,17 +1602,14 @@ t2 &lt;- system.time(mmkin_bench(c(&quot;SFO&quot;, &quot;FOMC&quot;, &quot;DFOP
<p>One metabolite:</p>
<pre class="r"><code>SFO_SFO &lt;- mkinmod(
parent = mkinsub(&quot;SFO&quot;, &quot;m1&quot;),
- m1 = mkinsub(&quot;SFO&quot;))</code></pre>
-<pre><code>## Successfully compiled differential equation model from auto-generated C code.</code></pre>
-<pre class="r"><code>FOMC_SFO &lt;- mkinmod(
+ m1 = mkinsub(&quot;SFO&quot;))
+FOMC_SFO &lt;- mkinmod(
parent = mkinsub(&quot;FOMC&quot;, &quot;m1&quot;),
- m1 = mkinsub(&quot;SFO&quot;))</code></pre>
-<pre><code>## Successfully compiled differential equation model from auto-generated C code.</code></pre>
-<pre class="r"><code>DFOP_SFO &lt;- mkinmod(
+ m1 = mkinsub(&quot;SFO&quot;))
+DFOP_SFO &lt;- mkinmod(
parent = mkinsub(&quot;FOMC&quot;, &quot;m1&quot;),
- m1 = mkinsub(&quot;SFO&quot;))</code></pre>
-<pre><code>## Successfully compiled differential equation model from auto-generated C code.</code></pre>
-<pre class="r"><code>t3 &lt;- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D)))[[&quot;elapsed&quot;]]
+ m1 = mkinsub(&quot;SFO&quot;))
+t3 &lt;- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D)))[[&quot;elapsed&quot;]]
t4 &lt;- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D),
error_model = &quot;tc&quot;))[[&quot;elapsed&quot;]]
t5 &lt;- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D),
@@ -1667,127 +1647,123 @@ save(mkin_benchmarks, file = &quot;~/git/mkin/vignettes/web_only/mkin_benchmarks
</div>
<div id="results" class="section level2">
<h2>Results</h2>
-<p>Currently, we only have benchmark information on one system, therefore only the mkin version is shown with the results below. Timings are in seconds, shorter is better.</p>
-<pre class="r"><code>rownames(mkin_benchmarks) &lt;- as.character(mkin_benchmarks$mkin)</code></pre>
+<p>Currently, we only have benchmark information on one system, therefore only the mkin version is shown with the results below. Timings are in seconds, shorter is better. All results were obtained by serial, i.e. not using multiple computing cores.</p>
<p>Benchmarks for all available error models are shown.</p>
<div id="parent-only" class="section level3">
<h3>Parent only</h3>
-<p>Constant variance and two-component error model:</p>
-<pre class="r"><code>kable(mkin_benchmarks[, c(&quot;t1&quot;, &quot;t2&quot;)])</code></pre>
+<p>Constant variance (t1) and two-component error model (t2) for four models fitted to two datasets, i.e. eight fits for each test.</p>
<table>
<thead>
<tr class="header">
-<th></th>
-<th align="right">t1</th>
-<th align="right">t2</th>
+<th align="left">mkin version</th>
+<th align="right">t1 [s]</th>
+<th align="right">t2 [s]</th>
</tr>
</thead>
<tbody>
<tr class="odd">
-<td>0.9.48.1</td>
+<td align="left">0.9.48.1</td>
<td align="right">3.610</td>
<td align="right">11.019</td>
</tr>
<tr class="even">
-<td>0.9.49.1</td>
+<td align="left">0.9.49.1</td>
<td align="right">8.184</td>
<td align="right">22.889</td>
</tr>
<tr class="odd">
-<td>0.9.49.2</td>
+<td align="left">0.9.49.2</td>
<td align="right">7.064</td>
<td align="right">12.558</td>
</tr>
<tr class="even">
-<td>0.9.49.3</td>
+<td align="left">0.9.49.3</td>
<td align="right">7.296</td>
<td align="right">21.239</td>
</tr>
<tr class="odd">
-<td>0.9.49.4</td>
+<td align="left">0.9.49.4</td>
<td align="right">5.936</td>
<td align="right">20.545</td>
</tr>
<tr class="even">
-<td>0.9.50.2</td>
-<td align="right">1.559</td>
-<td align="right">3.929</td>
+<td align="left">0.9.50.2</td>
+<td align="right">1.547</td>
+<td align="right">3.928</td>
</tr>
</tbody>
</table>
</div>
<div id="one-metabolite" class="section level3">
<h3>One metabolite</h3>
-<p>Constant variance, variance by variable and two-component error model:</p>
-<pre class="r"><code>kable(mkin_benchmarks[, c(&quot;t3&quot;, &quot;t4&quot;, &quot;t5&quot;)])</code></pre>
+<p>Constant variance (t3), two-component error model (t4), and variance by variable (t5) for three models fitted to one dataset, i.e. three fits for each test.</p>
<table>
<thead>
<tr class="header">
-<th></th>
-<th align="right">t3</th>
-<th align="right">t4</th>
-<th align="right">t5</th>
+<th align="left">mkin version</th>
+<th align="right">t3 [s]</th>
+<th align="right">t4 [s]</th>
+<th align="right">t5 [s]</th>
</tr>
</thead>
<tbody>
<tr class="odd">
-<td>0.9.48.1</td>
+<td align="left">0.9.48.1</td>
<td align="right">3.764</td>
<td align="right">14.347</td>
<td align="right">9.495</td>
</tr>
<tr class="even">
-<td>0.9.49.1</td>
+<td align="left">0.9.49.1</td>
<td align="right">4.649</td>
<td align="right">13.789</td>
<td align="right">6.395</td>
</tr>
<tr class="odd">
-<td>0.9.49.2</td>
+<td align="left">0.9.49.2</td>
<td align="right">4.786</td>
<td align="right">8.461</td>
<td align="right">5.675</td>
</tr>
<tr class="even">
-<td>0.9.49.3</td>
+<td align="left">0.9.49.3</td>
<td align="right">4.510</td>
<td align="right">13.805</td>
<td align="right">7.386</td>
</tr>
<tr class="odd">
-<td>0.9.49.4</td>
+<td align="left">0.9.49.4</td>
<td align="right">4.446</td>
<td align="right">15.335</td>
<td align="right">6.002</td>
</tr>
<tr class="even">
-<td>0.9.50.2</td>
-<td align="right">1.352</td>
-<td align="right">6.110</td>
-<td align="right">2.841</td>
+<td align="left">0.9.50.2</td>
+<td align="right">1.371</td>
+<td align="right">6.154</td>
+<td align="right">2.720</td>
</tr>
</tbody>
</table>
</div>
<div id="two-metabolites" class="section level3">
<h3>Two metabolites</h3>
-<p>Two different datasets, for each constant variance, variance by variable and two-component error model are shown:</p>
-<pre class="r"><code>kable(mkin_benchmarks[, paste0(&quot;t&quot;, 6:11)])</code></pre>
+<p>Constant variance (t6 and t7), two-component error model (t8 and t9), and variance by variable (t10 and t11) for one model fitted to one dataset, i.e. one fit for each test.</p>
<table>
<thead>
<tr class="header">
-<th></th>
-<th align="right">t6</th>
-<th align="right">t7</th>
-<th align="right">t8</th>
-<th align="right">t9</th>
-<th align="right">t10</th>
-<th align="right">t11</th>
+<th align="left">mkin version</th>
+<th align="right">t6 [s]</th>
+<th align="right">t7 [s]</th>
+<th align="right">t8 [s]</th>
+<th align="right">t9 [s]</th>
+<th align="right">t10 [s]</th>
+<th align="right">t11 [s]</th>
</tr>
</thead>
<tbody>
<tr class="odd">
-<td>0.9.48.1</td>
+<td align="left">0.9.48.1</td>
<td align="right">2.623</td>
<td align="right">4.587</td>
<td align="right">7.525</td>
@@ -1796,7 +1772,7 @@ save(mkin_benchmarks, file = &quot;~/git/mkin/vignettes/web_only/mkin_benchmarks
<td align="right">31.267</td>
</tr>
<tr class="even">
-<td>0.9.49.1</td>
+<td align="left">0.9.49.1</td>
<td align="right">2.542</td>
<td align="right">4.128</td>
<td align="right">4.632</td>
@@ -1805,7 +1781,7 @@ save(mkin_benchmarks, file = &quot;~/git/mkin/vignettes/web_only/mkin_benchmarks
<td align="right">5.636</td>
</tr>
<tr class="odd">
-<td>0.9.49.2</td>
+<td align="left">0.9.49.2</td>
<td align="right">2.723</td>
<td align="right">4.478</td>
<td align="right">4.862</td>
@@ -1814,7 +1790,7 @@ save(mkin_benchmarks, file = &quot;~/git/mkin/vignettes/web_only/mkin_benchmarks
<td align="right">5.574</td>
</tr>
<tr class="even">
-<td>0.9.49.3</td>
+<td align="left">0.9.49.3</td>
<td align="right">2.643</td>
<td align="right">4.374</td>
<td align="right">7.020</td>
@@ -1823,7 +1799,7 @@ save(mkin_benchmarks, file = &quot;~/git/mkin/vignettes/web_only/mkin_benchmarks
<td align="right">7.365</td>
</tr>
<tr class="odd">
-<td>0.9.49.4</td>
+<td align="left">0.9.49.4</td>
<td align="right">2.635</td>
<td align="right">4.259</td>
<td align="right">4.737</td>
@@ -1832,13 +1808,13 @@ save(mkin_benchmarks, file = &quot;~/git/mkin/vignettes/web_only/mkin_benchmarks
<td align="right">5.626</td>
</tr>
<tr class="even">
-<td>0.9.50.2</td>
-<td align="right">0.759</td>
-<td align="right">1.204</td>
-<td align="right">1.275</td>
-<td align="right">2.837</td>
-<td align="right">2.026</td>
-<td align="right">2.976</td>
+<td align="left">0.9.50.2</td>
+<td align="right">0.742</td>
+<td align="right">1.203</td>
+<td align="right">1.282</td>
+<td align="right">2.845</td>
+<td align="right">2.037</td>
+<td align="right">2.987</td>
</tr>
</tbody>
</table>

Contact - Imprint