CPU

In this section you will learn how to get CPU data including current speed and temperature:

For function reference and examples we assume, that we imported systeminformation as follows:

const si = require('systeminformation');

CPU Data

All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)

Function Result object Linux BSD Mac Win Sun Comments
si.cpu(cb) {...} X X X X CPU information object
manufacturer X X X X e.g. 'Intel(R)'
brand X X X X e.g. 'Core(TM)2 Duo'
speed X X X X in GHz e.g. '3.40'
speedmin X X X in GHz e.g. '0.80'
speedmax X X X X in GHz e.g. '3.90'
cores X X X X # cores
physicalCores X X X X # physical cores
processors X X X X # processors
socket X X X socket type e.g. "LGA1356"
vendor X X X X vendor ID
family X X X X processor family
model X X X X processor model
stepping X X X X processor stepping
revision X X X revision
voltage X voltage
cache X X X X cache in bytes (object)
cache.l1d X X X X L1D (data) size
cache.l1i X X X X L1I (instruction) size
cache.l2 X X X X L2 size
cache.l3 X X X X L3 size
si.cpuFlags(cb) : string X X X X CPU flags
si.cpuCache(cb) {...} X X X X CPU cache sizes object
l1d X X X X L1D size
l1i X X X X L1I size
l2 X X X X L2 size
l3 X X X X L3 size
si.cpuCurrentspeed(cb) {...} X X X X X current CPU speed (GHz) object
avg X X X X X avg CPU speed (all cores)
min X X X X X min CPU speed (all cores)
max X X X X X max CPU speed (all cores)
cores X X X X X CPU speed per core (array)
si.cpuTemperature(cb) {...} X X X* X CPU temperature (if supported)
main X X X X main temperature (avg)
cores X X X X array of temperatures
max X X X X max temperature