繁体   English   中英

当 CPU 具有效率核心(例如 i7-13700k)时,os.cpus() 返回什么?

[英]What does os.cpus() return when the CPU has efficiency cores such as the i7-13700k?

当一个CPU有多个型号的CPU比如i7-13700K既有性能核心也有效率核心时, os.cpus()返回什么?

它们只是显示为具有不同速度值的常规 CPU,还是用表明它们是不同类型内核的某些属性来表示?

os.cpus()会像您期望的那样返回一个对象数组。 它不区分性能/效率核心。

例如

[
  {
    model: '12th Gen Intel(R) Core(TM) i7-1280P',
    speed: 1996,
    times: { user: 75070, nice: 400, sys: 18870, idle: 55270240, irq: 0 }
  },
  {
    model: '12th Gen Intel(R) Core(TM) i7-1280P',
    speed: 1996,
    times: { user: 64530, nice: 900, sys: 10220, idle: 55291960, irq: 0 }
  },
  {
    model: '12th Gen Intel(R) Core(TM) i7-1280P',
    speed: 1996,
    times: { user: 85360, nice: 110, sys: 20670, idle: 55257350, irq: 0 }
  },
  * snip *
  {
    model: '12th Gen Intel(R) Core(TM) i7-1280P',
    speed: 1996,
    times: { user: 95930, nice: 400, sys: 23880, idle: 55250410, irq: 0 }
  },
  {
    model: '12th Gen Intel(R) Core(TM) i7-1280P',
    speed: 1996,
    times: { user: 21110, nice: 420, sys: 4700, idle: 55350410, irq: 0 }
  }
]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM