cachebench {pbdPAPI}R Documentation

cachebench

Description

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

Usage

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

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

## End(Not run)


[Package pbdPAPI version 0.3-2 Index]