Skip to main content
loadavg - os - Node documentation
function loadavg

Usage in Deno

import { loadavg } from "node:os";
loadavg(): number[]

Returns an array containing the 1, 5, and 15 minute load averages.

The load average is a measure of system activity calculated by the operating system and expressed as a fractional number.

The load average is a Unix-specific concept. On Windows, the return value is always [0, 0, 0].

Return Type

number[]