Description Usage Arguments Details Value Examples
Measuring floating point operations.
1 | system.flops(expr, gcFirst = TRUE, burnin = TRUE)
|
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. |
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.
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) |
1 2 3 4 5 6 | ## Not run:
library(pbdPAPI)
system.flops(1+1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.