How do one use the list-argument in the microbenchmark
function.
I want to microbenchmark the same function with different inputs as in
microbenchmark(j1 = {sample(1e5)},
j2 = {sample(2e5)},
j3 = {sample(3e5)})
The following is not going to fly, as the list will just contain vectors and not unevaluated expressions.
microbenchmark(list = list(j1 = {sample(1e5)},
j2 = {sample(2e5)},
j3 = {sample(3e5)))
I would also want to generate the list using e.g. lapply
.