From 19861806ed790dc55380c64c6a5e27ba7ecd52de Mon Sep 17 00:00:00 2001
From: Johannes Ranke Two metabolites, synthetic data:Benchmark timings for mkin
Johannes Ranke
-Last change 14 July 2022 (rebuilt 2023-01-05)
+Last change 14 July 2022 (rebuilt 2023-02-13)
@@ -1636,11 +1636,31 @@ FOMC_SFO <- mkinmod(
DFOP_SFO <- mkinmod(
parent = mkinsub("FOMC", "m1"), # erroneously used FOMC twice, not fixed for consistency
m1 = mkinsub("SFO"))
-t3 <- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D)))[["elapsed"]]
-t4 <- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D),
- error_model = "tc"))[["elapsed"]]
-t5 <- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D),
+t3 <- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D)))[["elapsed"]]
+
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+t4 <- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D),
+ error_model = "tc"))[["elapsed"]]
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+t5 <- system.time(mmkin_bench(list(SFO_SFO, FOMC_SFO, DFOP_SFO), list(FOCUS_D),
error_model = "obs"))[["elapsed"]]
## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+m_synth_SFO_lin <- mkinmod(parent = mkinsub("SFO", "M1"),
M1 = mkinsub("SFO", "M2"),
@@ -1656,18 +1676,36 @@ SFO_lin_a <- synthetic_data_for_UBA_2014[[1]]$data
DFOP_par_c <- synthetic_data_for_UBA_2014[[12]]$data
-t6 <- system.time(mmkin_bench(list(m_synth_SFO_lin), list(SFO_lin_a)))[["elapsed"]]
-t7 <- system.time(mmkin_bench(list(m_synth_DFOP_par), list(DFOP_par_c)))[["elapsed"]]
-
-t8 <- system.time(mmkin_bench(list(m_synth_SFO_lin), list(SFO_lin_a),
- error_model = "tc"))[["elapsed"]]
-t9 <- system.time(mmkin_bench(list(m_synth_DFOP_par), list(DFOP_par_c),
- error_model = "tc"))[["elapsed"]]
-
-t10 <- system.time(mmkin_bench(list(m_synth_SFO_lin), list(SFO_lin_a),
- error_model = "obs"))[["elapsed"]]
-t11 <- system.time(mmkin_bench(list(m_synth_DFOP_par), list(DFOP_par_c),
+t6 <- system.time(mmkin_bench(list(m_synth_SFO_lin), list(SFO_lin_a)))[["elapsed"]]
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+t7 <- system.time(mmkin_bench(list(m_synth_DFOP_par), list(DFOP_par_c)))[["elapsed"]]
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+t8 <- system.time(mmkin_bench(list(m_synth_SFO_lin), list(SFO_lin_a),
+ error_model = "tc"))[["elapsed"]]
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+t9 <- system.time(mmkin_bench(list(m_synth_DFOP_par), list(DFOP_par_c),
+ error_model = "tc"))[["elapsed"]]
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+t10 <- system.time(mmkin_bench(list(m_synth_SFO_lin), list(SFO_lin_a),
+ error_model = "obs"))[["elapsed"]]
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+t11 <- system.time(mmkin_bench(list(m_synth_DFOP_par), list(DFOP_par_c),
error_model = "obs"))[["elapsed"]]
## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
+## Error in mkinmod[["symbols"]] :
+## object of type 'closure' is not subsettable
Results
@@ -1858,6 +1896,14 @@ models fitted to two datasets, i.e. eight fits for each test.
1.308
1.793
+
+
Linux
+Ryzen 9 7950X 16-Core Processor
+4.2.2
+1.3.0
+1.271
+1.787
+