cachebench: cachebench

Description Usage Arguments Details Value Examples

Description

A benchmarker for measuring cache misses of multiple runs of one or more functions.

Usage

1
cachebench(..., type = "miss", events = "total", nreps = 10)

Arguments

...

Expressions to be benchmarked.

type, events

See ?system.cache().

nreps

Number of replications for each expression.

Details

Currently only total cache misses are profiled. Future versions will allow the full generality of the systme.cache() function.

Value

A dataframe (class "cachebench") containng the timings and some basic summary statistics.

Examples

1
2
3
4
## Not run: 
pbdPAPI::cachebench(rnorm(1e4), rnorm(2e4), rnorm(3e4))

## End(Not run)

RBigData/pbdPAPI documentation built on May 8, 2019, 5:48 a.m.