system.flips: flips

Description Usage Arguments Details Value Examples

Description

Measuring floating point instructions.

Usage

1
system.flips(expr, gcFirst = TRUE, burnin = TRUE)

Arguments

expr

A valid R expression to be profiled.

gcFirst

logical; determines if garbage collection should be called before profiling.

burnin

logical; determines if the function should first be evaluated with an empty expression.

Details

This function measures the evaluation of the provided expression, expr, for real time, process time, number of floating point instructions, and floating point instruction rate. The additional arguments, gcFirst and burnin, can be toggled to better simulate the target context.

Value

The return is a list consisting of:

real_time real time spent evaluating expression
proc_time total process time spent evaluating expression
flpins FLoating Point INStructions (count)
mflips Mflips (flpins per second)

Examples

1
2
3
4
5
6
## Not run: 
library(pbdPAPI)

system.flips(1+1)

## End(Not run)

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