Benchmark parallel templates
Plot result of parallel benchmark
By default this function will perform timings of the most critical parts of an AD model, specifically
Objective function of evaluated template.
Gradient of evaluated template.
Sparse hessian of evaluated template.
Cholesky factorization of sparse hessian.
(for pure fixed effect models only the first two).
Expressions to time can be overwritten by the user (expr).
A plot method is available for Parallel benchmarks.
if (FALSE) { # \dontrun{
runExample("linreg_parallel",thisR=TRUE) ## Create obj
ben <- benchmark(obj,n=100,cores=1:4)
plot(ben)
ben <- benchmark(obj,n=10,cores=1:4,expr=expression(do.call("optim",obj)))
plot(ben)
} # }