system.flops: flops

Description Usage Arguments Details Value Examples

Description

Measuring floating point operations.

Usage

1
system.flops(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 operations, and floating point operation 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
flpops FLoating Point OPerationS (count)
mflops Mflops (flpops per second)

Examples

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

system.flops(1+1)

## End(Not run)

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