cpu_clock: CPU Clock

Description Usage Arguments Details Value See Also Examples

Description

A utility to look up some basic performance information about the CPU.

Usage

1
cpu_clock(milis = 200, quad_check = FALSE)

Arguments

milis

The amount of time in miliseconds the clock test should run for. Recommended range is 10-1000.

quad_check

logical; if TRUE, the average of a best of four runs is returned.

Details

There may be a large difference between the CPU clock as reported by the OS and as discovered by the small test. Modern operating systems keep the CPU clock scaled down to save power, and scale them up as needed.

Value

Returns a list containing:

ncores Number of "cores" (physical + logical).
clock.os The CPU clock as reported by the OS.
clock.tested The CPU clock determined from a small test.
peak Theoretical peak floating point operations per second.

See Also

cpu_id, cpu_ins

Examples

1
2
3
4
5
## Not run: 
library(okcpuid, quietly=TRUE)
cpu_clock()

## End(Not run)

shinra-dev/okcpuid documentation built on May 29, 2019, 9:25 p.m.