Learn R Programming

RegimeChange (version 0.1.1)

benchmark_backends: Benchmark Julia vs R Performance

Description

Compare execution time between Julia and R implementations.

Usage

benchmark_backends(data, method = "pelt", n_reps = 10, ...)

Value

Data frame with timing results (invisibly).

Arguments

data

Test data.

method

Method to benchmark.

n_reps

Number of repetitions.

...

Additional arguments for the method.

Examples

Run this code
# \donttest{
data <- c(rnorm(500), rnorm(500, 3))
benchmark_backends(data, method = "pelt", penalty = log(1000))
# }

Run the code above in your browser using DataLab