cachebench {pbdPAPI} | R Documentation |
A benchmarker for measuring cache misses of multiple runs of one or more functions.
cachebench(..., type = "miss", events = "total", nreps = 10)
... |
Expressions to be benchmarked. |
type, events |
See |
nreps |
Number of replications for each expression. |
Currently only total cache misses are profiled. Future versions
will allow the full generality of the systme.cache()
function.
A dataframe (class "cachebench") containng the timings and some basic summary statistics.
## Not run: pbdPAPI::cachebench(rnorm(1e4), rnorm(2e4), rnorm(3e4)) ## End(Not run)