R/load.R

Defines functions bench_load_average

Documented in bench_load_average

#' Get system load averages
#'
#' Uses OS system APIs to return the load average for the past 1, 5 and 15 minutes.
#' @export
bench_load_average <- function() {
  stats::setNames(
    .Call(bench_load_average_),
    c("load_1_min", "load_5_min", "load_15_min")
  )
}

Try the bench package in your browser

Any scripts or data that you put into this service are public.

bench documentation built on May 4, 2023, 5:13 p.m.