5

Mac压力测试命令参考(兼容ARM版的Mac)

 2 years ago
source link: https://www.itpwd.com/288.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Mac压力测试命令参考(兼容ARM版的Mac)_Mac笔记_IT密码

2021年11月:经测试,可兼容ARM版的Mac

以下内容作于2018年5月

确认你的CPU是几核几线程,目前比较普遍的是双核四线程、四核八线程、六核十二线程,如不清楚点击我获取系统信息

打开终端,输入以下命令确定,即可创建一项名为“yes”的进程,这种进程会耗费一定量的CPU使用率

确认你的CPU线程数是多少就执行多少次

yes > /dev/null &

打开活动监视器(打开启动台Launchpad-工具里面可以找到),排序下CPU的信息可以看到这些“yes”进程已经吃干净了资源,此时风扇也已经嗷嗷叫了。

接下来可以使用系统状态查看软件来看看具体的参数表现,建议使用HWMonitor或者iStat Menus

测试完毕(一般5分钟以上)后记得清除“yes”进程,输入在终端内输入以下命令后确定

killall yes



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK