The simulation engines of the package are written in C++. This
article gives the time that each design takes to simulate the trials of
one scenario and to summarize their operating characteristics, on one
machine. The times are read from
inst/benchmark/results/benchmark.csv, written by
inst/benchmark/benchmark.R.
What is measured
The 11 designs that were compared with a reference implementation, in
another R package or in the code of the authors of the design, are run
by both with the same settings and the same number of trials: those of
the comparison of the design in inst/validation/ or
inst/reproduce/, or of the README for the BOIN design, with
the number of trials used there for the reference. TITE-gBOIN-ET is
timed against two references, ‘boinet’ and the R program of the
supporting information of Takeda et al. (2023), a script that runs all
the settings of the article and that is run here as published for one of
them, with its own rules, which differ from those of the package in the
two points described in the article “How the package is checked”. The 10
other designs are run by the package alone, with the settings of the
example in their vignette and 10,000 trials. The settings are listed in
the section “Settings” below.
The time is the elapsed time of one call. A fast call is repeated
until the repetitions take at least one second, and the time per call is
kept. Every time was measured 3 times, alternating between the two
implementations, and the tables give the median. Printed output and
warnings of the calls are discarded. The package was installed before it
was timed: devtools::load_all() compiles the C++ code
without optimization.
The machine
The times were measured on 2026-11-27 under Windows 11 x64 (build
26200), on an Intel(R) Core(TM) Ultra 7 155H with 16 physical cores,
with R 4.6.1. The simulations of the package run on one core. The code
of the authors of BOIN-ETC (the GitHub repository
kakizume/BOINETC) and the program of Takeda et al. (2023)
have no version; the versions of the packages were
| Package | Version |
|---|---|
| simFastBOIN | 2.3.0 |
| BOIN | 2.7.2 |
| boinet | 1.6.0 |
| bfboinet | 1.1.0 |
| UnifiedDoseFinding | 0.1.10 |
| escalation | 0.2.3 |
Designs compared with a reference implementation
| Design | Trials | Reference | Reference (s) | simFastBOIN | simFastBOIN (s) | Times faster |
|---|---|---|---|---|---|---|
| BOIN | 10,000 | BOIN::get.oc() | 8 | sim_boin() | 0.031 | 260 |
| BOIN combination | 1,000 | BOIN::get.oc.comb() | 0.53 | sim_comb_boin() | 0.067 | 7.9 |
| Waterfall | 500 | BOIN::get.oc.comb(mtd.contour = TRUE) | 1.4 | sim_waterfall() | 0.05 | 29 |
| BOIN-ET | 5,000 | boinet::boinet() | 18 | sim_boin_et() | 0.038 | 480 |
| TITE-BOIN-ET | 2,000 | boinet::tite.boinet() | 48 | sim_tite_boin_et() | 0.047 | 1,000 |
| gBOIN-ET | 5,000 | boinet::gboinet() | 22 | sim_gboin_et() | 0.12 | 190 |
| TITE-gBOIN-ET | 5,000 | boinet::tite.gboinet() | 140 | sim_tite_gboin_et() | 0.35 | 400 |
| TITE-gBOIN-ET, program of the article | 1,000 | simulation1_TITE-gBOIN-ET.R of Takeda et al. (2023) | 23 | sim_tite_gboin_et() | 0.085 | 270 |
| BF-BOIN-ET | 1,000 | bfboinet::get.oc.backboinet() | 280 | sim_bf_boin_et() | 0.026 | 11,000 |
| gBOIN | 4,000 | UnifiedDoseFinding::get_oc_QuasiBOIN() | 8 | sim_gboin() | 0.033 | 240 |
| BOIN12 | 2,000 | escalation::simulate_trials() | 120 | sim_boin12() | 0.031 | 3,900 |
| BOIN-ETC | 1,000 | get.oc.BOINETC() of Kakizume et al. (2024) | 0.41 | sim_boin_etc() | 0.015 | 28 |
The package was between 7.9 and 11,000 times faster than the
reference implementation. The ratio is smallest for the three
drug-combination designs: 7.9 for the BOIN drug-combination design, 29
for the waterfall design and 28 for BOIN-ETC. For the first two, both
packages select the MTD of every trial with the bivariate isotonic
regression of Iso::biviso(), called from R once per trial.
The code of the authors of BOIN-ETC simulates the trials and writes them
to a file, and selects the optimal dose combinations afterwards with
another function, CALC.SUM(), which is not timed; the
package does both. The ratio is largest for BF-BOIN-ET, whose reference
implementation takes 280 seconds for 1,000 trials.
Other designs
| Design | Trials | simFastBOIN | Seconds |
|---|---|---|---|
| iBOIN | 10,000 | sim_iboin() | 0.04 |
| Accelerated BOIN | 10,000 | sim_boin() | 0.028 |
| TITE-BOIN, imputation | 10,000 | sim_tite_boin() | 0.078 |
| TITE-BOIN, ESS | 10,000 | sim_tite_boin() | 0.066 |
| BF-BOIN | 10,000 | sim_bf_boin() | 0.16 |
| BE-BOIN | 10,000 | sim_be_boin() | 0.17 |
| TITE-BOIN12 | 10,000 | sim_tite_boin12() | 0.79 |
| U-BOIN | 10,000 | sim_uboin() | 0.19 |
| Comb-BOIN12 | 10,000 | sim_comb_boin12() | 78 |
| TITE-Comb-BOIN12 | 10,000 | sim_tite_comb_boin12() | 77 |
Other implementations exist for some of these designs, such as the
‘TITEgBOIN’ package for TITE-BOIN, but they were not compared with the
package and are not timed here. 8 of the 10 designs take less than one
second for 10,000 trials. Comb-BOIN12 and TITE-Comb-BOIN12 take about 78
and 77 seconds: by default (est_method = "logistic") they
estimate the response probabilities at the end of every trial by the
posterior mean under the logistic model of Lu et al. (2025), computed by
importance sampling with 4,000 points (n_draws = 4000).
With est_method = "observed", the observed response rates,
the selection is much faster.
Settings
| Design | Setting |
|---|---|
| BOIN | Five doses, 20 cohorts of three, n_earlystop = 18 (README) |
| BOIN combination | Lin and Yin 1 (3 x 5), 20 cohorts of three, n_earlystop = 12 (compare-comb-with-BOIN.R) |
| Waterfall | Scenario 9 of Zhang and Yuan (2016) (3 x 5), cohorts of three, boin_compatible = TRUE (compare-waterfall-with-BOIN.R) |
| BOIN-ET | Scenario 1 of Takeda et al. (2018), 12 cohorts of three (compare-with-boinet.R) |
| TITE-BOIN-ET | Scenario 1 of Takeda et al. (2018), windows of 30 and 45 days, a patient every 10 days (compare-with-boinet.R) |
| gBOIN-ET | Scenario 1 of Takeda et al. (2022), probabilities of Table S1, 10 cohorts of three (compare-with-gboinet.R) |
| TITE-gBOIN-ET | Scenario 1 of Takeda et al. (2023), windows of 30 and 60 days, 12 cohorts of three (compare-with-tite-gboinet.R) |
| TITE-gBOIN-ET, program of the article | Scenario 1 of Takeda et al. (2023), windows of 30 and 60 days, a patient every 10 days, 12 cohorts of three; the program of the supporting information as published (reproduce_Takeda2023.R) |
| BF-BOIN-ET | Example of ‘bfboinet’, 10 cohorts of three, windows of one month, three patients a month (compare-with-bfboinet.R) |
| gBOIN | Scenario 1 of Mu et al. (2019), 10 cohorts of three, elim_rule = “count” (compare-with-UnifiedDoseFinding.R) |
| BOIN12 | Scenario 1 of Lin et al. (2020), 12 cohorts of three (compare-with-escalation.R) |
| iBOIN | Scenario 3 of Zhou et al. (2021), prior_ess = 3, 10 cohorts of three (vignette) |
| Accelerated BOIN | titration_doses = 2, n_earlystop = 6, eight cohorts of three (vignette) |
| TITE-BOIN, imputation | Window of three months, two patients a month, 10 cohorts of three (vignette) |
| TITE-BOIN, ESS | Window of three months, two patients a month, 10 cohorts of three (vignette) |
| BF-BOIN | Setting of Zhao et al. (2024), window of one month, three patients a month (vignette) |
| BE-BOIN | Scenario of Zhao et al. (2024), window of three months, two patients a month (vignette) |
| TITE-BOIN12 | Scenario 1 of Lin et al. (2020), windows of 45 and 60 days, three patients every 30 days, 12 cohorts of three (vignette) |
| U-BOIN | Scenario 1 of Simulation A of Zhou, Lee and Yuan (2019), 18 cohorts of three (vignette) |
| Comb-BOIN12 | Scenario 16 of Lu et al. (2025) (2 x 3), 14 cohorts of three (vignette) |
| TITE-Comb-BOIN12 | Scenario 16 of Lu et al. (2025), windows of one and two months, two patients a month (vignette) |
| BOIN-ETC | Scenario 1 of Kakizume et al. (2024) (2 x 3), BOIN-ETC1, eight cohorts of three, n_earlystop = 6, the rules of the code of the authors (compare-with-BOINETC.R) |
The scripts named in the settings are in
inst/validation/ and inst/reproduce/, from
which the scenarios of the articles are also taken.
Measuring on your own machine
From the root of the source package, install the package, restart R and run
library(simFastBOIN)
source("inst/benchmark/benchmark.R")
res <- run_benchmark(boinetc_zip = "path/to/BOINETC-main.zip",
takeda2023_zip = "path/to/Takeda_2023_SI.zip")with the reference packages ‘BOIN’, ‘boinet’, ‘bfboinet’,
‘UnifiedDoseFinding’ and ‘escalation’ installed and the zip files of the
code of the authors of BOIN-ETC and of the supporting information of
Takeda et al. (2023); a design whose reference is missing is recorded as
such. The run writes inst/benchmark/results/benchmark.csv.
Most of the time goes to the reference packages.
References
Kakizume, T., Takeda, K., Taguri, M. and Morita, S. (2024). BOIN-ETC: A Bayesian optimal interval design considering efficacy and toxicity to identify the optimal dose combinations. Statistical Methods in Medical Research, 33(4), 716-727.
Lu, M., Zhang, J., Yuan, Y. and Lin, R. (2025). Comb-BOIN12: A utility-based Bayesian optimal interval design for dose optimization in cancer drug-combination trials. Statistics in Biopharmaceutical Research, 17(2), 266-276.
Takeda, K., Yamaguchi, Y., Taguri, M. and Morita, S. (2023). TITE-gBOIN-ET: Time-to-event generalized Bayesian optimal interval design to accelerate dose-finding accounting for ordinal graded efficacy and toxicity outcomes. Biometrical Journal, 65(7), 2200265.
