From b7901aac76df753ec1213cb02bebea055965ee87 Mon Sep 17 00:00:00 2001
From: Ranke Johannes Johannes
Ranke
- 2023-05-19
+ 2023-10-30
Source: vignettes/web_only/compiled_models.rmd
compiled_models.rmd
mkinmod()
function
checks for presence of a compiler using
-pkgbuild::has_compiler()
pkgbuild::has_compiler()
In previous versions, it used Sys.which("gcc")
for this
check.
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.
print("R package rbenchmark is not available") }## test replications relative elapsed
-## 4 analytical 1 1.000 0.099
-## 3 deSolve, compiled 1 1.303 0.129
-## 2 Eigenvalue based 1 1.697 0.168
-## 1 deSolve, not compiled 1 21.475 2.126
+## 4 analytical 1 1.000 0.213
+## 3 deSolve, compiled 1 1.418 0.302
+## 2 Eigenvalue based 1 2.000 0.426
+## 1 deSolve, not compiled 1 23.535 5.013
We see that using the compiled model is by more than a factor of 10 faster than using deSolve without compiled code.
@@ -247,15 +250,15 @@ compiled code is available. }## Temporary DLL for differentials generated and loaded
## test replications relative elapsed
-## 2 deSolve, compiled 1 1.000 0.165
-## 1 deSolve, not compiled 1 22.673 3.741
-Here we get a performance benefit of a factor of 23 using the version +## 2 deSolve, compiled 1 1.000 0.492 +## 1 deSolve, not compiled 1 20.398 10.036 +
Here we get a performance benefit of a factor of 20 using the version of the differential equation model compiled from C code!
-This vignette was built with mkin 1.2.4 on
-## R version 4.3.0 Patched (2023-05-18 r84448)
+This vignette was built with mkin 1.2.6 on
+## R version 4.3.1 (2023-06-16)
## Platform: x86_64-pc-linux-gnu (64-bit)
-## Running under: Debian GNU/Linux 12 (bookworm)
-## CPU model: AMD Ryzen 9 7950X 16-Core Processor
+## Running under: Ubuntu 22.04.3 LTS
+## CPU model: Intel(R) Xeon(R) Gold 6134 CPU @ 3.20GHz
--
cgit v1.2.1