下面记录下自己经常使用的linux下计算机CPU性能、显卡性能测试软件。
说明:
-
time echo "scale=5000; 4*a(1)" | bc -l -q(注意空格)
解释:time命令:测量命令的执行时间或者系统资源的使用情况
bc 命令是任意精度计算器语言,通常在linux下当计算器用。
4a(1)调用了反正切函数,由三角函数知道1的反正切是π/4, π=4π/4,scale:精度,可理解为精度越高,对CPU压力越大 - sudo apt-get install glxgears (安装使用)
- 下载地址:Valley benchmark | UNIGINE Benchmarks
- sudo apt-get install rt-tests (安装使用)
- 下载地址:比2号山谷压力更大 Superposition benchmark | UNIGINE Benchmarks