雖然找到另外 Linux 下 CPU 效能檢測的工具,但他們都只針對單核心在做運算.建議使用另外一套 SysBench(CPU) https://benjr.tw/8715
CPU Burn-in
http://www.cpuburnin.com/ 下載下來,解開就只有一個執行檔,後面的參數是時間,以分為計算單位.
CPU Burn-in constantly cycles FPU intensive functions for a user specified period of time.
主要去計算 浮點運算器(floating point unit,縮寫FPU)是執行浮點運算的結構,來評估 CPU 的好壞.
[root@benjr ~]# ./cpuburn-in 1 CPU Burn-in v1.00 – Linux ————————- Michal Mienik (c) 2000. http://cpuburnin.com 0 iterations complete. 5000 iterations complete. ….. 425000 iterations complete. 430000 iterations complete. Test Complete. No errors were found after running 430971 tests.
也有人直接算 pi (3.1415……)的值,來看系統 CPU 的好壞,計算 pi 的指令方式.
time echo “scale=5000; 4*a(1)” | bc -l -q
http://www.linuxidc.com/Linux/2009-06/20495.htm
[root@benjr ~]# time echo "scale=500;4*a(1)" | bc -l -q 3.141592653589793238462643383279502884197169399375105820974944592307\ 81640628620899862803482534211706798214808651328230664709384460955058\ 22317253594081284811174502841027019385211055596446229489549303819644\ 28810975665933446128475648233786783165271201909145648566923460348610\ 45432664821339360726024914127372458700660631558817488152092096282925\ 40917153643678925903600113305305488204665213841469519415116094330572\ 70365759591953092186117381932611793105118548074462379962749567351885\ 75272489122793818301194912 real 0m0.214s user 0m0.112s sys 0m0.033s
沒有解決問題,試試搜尋本站其他內容
One thought on “Linux Command – CPU Burn-in”