Run benchmarks across multiple configurations to compare performance.
Examples
# \donttest{
# Compare benchmarks
configs <- list(
list(N = 50, p = 2, n_groups = 0),
list(N = 100, p = 2, n_groups = 0)
)
comparison <- ratiod_benchmark_compare(configs, n_iter = 200, n_warmup = 100)
print(comparison)
#> N p n_groups n_params elapsed_sec samples_per_sec iter_per_sec n_divergent
#> 1 50 2 0 6 0.01038527 9629.018 19258.04 0
#> 2 100 2 0 6 0.01399302 7146.418 14292.84 0
# }