Skip to contents

Run benchmarks across multiple configurations to compare performance.

Usage

ratiod_benchmark_compare(configs, n_iter = 500, n_warmup = 250, n_threads = 1)

Arguments

configs

A list of configuration lists, each with N, p, n_groups

n_iter

Iterations per benchmark

n_warmup

Warmup iterations

n_threads

Number of threads

Value

A data frame with benchmark results

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
# }