This can be helpful for benchmarking.
n_times_faster_with_cache(
x1,
x2 = x1,
...,
fun = styler::style_text,
n = 3,
clear = "always"
)
Arguments passed to fun
.
The function that should be timed.
The number of times the experiment should be repeated.
A scalar indicating the relative difference of the second compared to the first run.