phoronix-test-suit安装与测试

51cto/2023/10/1 4:43:20

介绍

phoronix-test-suite是Linux下的一款性能测试软件,其实就是一款集中测试软件,该软件集成了各式各样的测试软件,但是每个测试项都要联网下载。整个的流程就是,联网下载各种测试项,测试套件,并在本机环境下编译安装,这样就能够达到跨平台的效果,比如你可以测试arm架构的cpu和x86架构的cpu.当然不仅仅测试cpu,gpu等性能,你还能够测试服务器,数据库等。

# deb cdrom:[Ubuntu 16.04.6 LTS _Xenial Xerus_ - Release i386 (20190227.1)]/ xenial main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partnerdeb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

一、安装

sudo apt install phoronix-test-suit

二、测试

  • 运行一个小的测试集合
phoronix-test-suite benchmark smallpt

单位:Seconds (数值越小越好)
在这里插入图片描述

  • 内存测试
    测试套件:pts/ramspee
    phoronix-test-suite benchmark ramspeed

在这里插入图片描述
磁盘测试
测试套件:pts/tiobench
phoronix-test-suite benchmark tiobench

测试文件IO性能
phoronix-test-suite benchmark fio

三、命令

列出所有的命令选项
phoronix-test-suite

  • 查看所有支持的测试项
    phoronix-test-suite list-available-tests
  • 查看所有支持的测试套件
    phoronix-test-suite list-available-suite
  • 查看所有保存的测试结果
    phoronix-test-suite list-save-results
  • 查看所有已安装的测试
    phoronix-test-suite list-install-tests
    常用命令:
    $phoronix-test-suite list-available-tests 查看所有支持的测试项
    $phoronix-test-suite list-available-suite 查看所有支持的测试套件
    $phoronix-test-suite list-save-results 查看所有保存的测试结果
    $phoronix-test-suite lis-install-tests 查看所有已安装的测试
    $phoronix-test-suite show-result result-file查看测试结果
    $phoronix-test-suite result-file-to-pdf result-file 将结果文件转化为pdf格式
    $phoronix-test-suite result-file-to-json result-file 将结果文件转化为json格式
    $phoronix-test-suite result-file-to-text result-file 将结果文件转化为text格式 $phoronix-test-suite run pts/cpu 运行pts/cpu测试套件

安装测试套件

phoronix-test-suite install pts/cpu
安装pts/cpu的套件(pts/cpu这项可以从list-available-suite获得测试套件的名称)
注意1:安装会有部分失败,查看了下,失败的主要原因是因为部分下载链接失效或是下载链接打开失败,
解决办法:我们可以通过浏览器访问下载链接去下载内容并把下载包放到~/.phoronix-test-suite目录下的install-tests目录对应的包目录下,再次执行$phoronix-test-suite install pts/cpu你会发现之前就不会从网络上下载了,而是安装当前的包。
注意2:可能有部分下载完安装时提示:cannot guess build type, you must specify one, 如果出现这样的提示,我们可以找到对应项安装的脚本文件,在~/.phoronix-test-suite/test/profile/xxxx.1.1.1目录下(xxxx是安装项名),有个install.sh脚本文件,在文件中
的./configturn 后加上 --build=arm-linux(如果你是arm架构的就加arm-linux, 如果是x86架构的就只加linux)
4 运行测试项
phoronix-test-suite run pts/cpu 运行pts/cpu测试套件 (pts/cpu从list-available-suites查看名称)
测试之前会提示你输入这次测试的名称和描述等,输入完成就开始测试,我测试pts/cpu跑了2个多小时才跑完,所以需要耐心的等待下,测试完成之后,又会提示是否需要把这次测试结果上传到openBenchConfig.orgopenbenchmarking.org平台上。

5 查看测试结果
第一种
phoronix-test-suite show-result nvidia-x2 查看测试结果(nvidia-x2是我之前运行的结果, 运行后会弹出网页显示测试结果)
当然还有更多对测试结果的操作,比如结果转化为pdf文档,删除结果,重命名,合并等,具体的命令运行$phoronix-test-suite后看RESULT MANAGEMENT下的命令选项
第二种
如果你在测试完成后上传到了openbenchmarking.org平台上,你可以进入www.openbenchmarking.org/results/latest 查看该网站最近上传的测试结果,可以看到许多人上传的的测试结果,可以把结果导出为xml, pdf等文件,还可以选择两个文件进行对比查看。

安装9.8

安装php

sudo apt-get install php*
sudo dpkg -i

其它

sudo apt-get -f install

常用命令

phoronix-test-suite benchmark smallpt
phoronix-test-suite run iozone

  • 内存测试
    测试套件:pts/ramspee
    phoronix-test-suite benchmark ramspeed

磁盘测试
测试套件:pts/tiobench
phoronix-test-suite benchmark tiobench

测试文件IO性能
phoronix-test-suite benchmark fio


http://www.ngui.cc/51cto/show-568.html

相关文章

train_test_split用法总结

sklearn.model_selection.train_test_split随机划分训练集和测试集 官网文档:http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html#sklearn.model_selection.train_test_split 一般形式: train_test_spli…

linux在根目录下创建目录一test,Linux练习题

1.利用pwd命令显示当前目录pwd2.ls命令 ls -a命令的区别没路径 有路径3.man命令查看ls的手册man ls4.在根目录下创建test目录mkdier test5.在test目录下创建user1/user2目录结构mkdier user1 user26.利用touch命令在user2下创建文件myfiletouch myfile7.利用cp命令将myfile复…

SpringBoot - @SpringBootTest加速单元测试的小窍门

文章目录Preclasses用法webEnvironment用法Pre SpringBoot - 应用程序测试方案, 随着代码量的争夺,测试类的启动速度变得越来越慢,而大多数情况下只是为了测试一下某个实现类的某个方法而已,比如测试一个DAO层的方法&#xff0c…

分享一个超详细的数据分析案例【Python】附ABTest详细介绍

大家好,我是老吴,大家也可以叫我吴同学,再小一点的朋友也可以叫我吴师兄。欢迎大家跟我一起走进数据分析的世界,一起学习! 感兴趣的朋友可以关注我或者我的数据分析专栏,里面有许多优质的文章跟大家分享哦。…

详细讲解ABTest假设检验【实验设计结论分析】数据分析

大家好,我是老吴,大家也可以叫我吴同学,再小一点的朋友也可以叫我吴师兄。欢迎大家跟我一起走进数据分析的世界,一起学习! 感兴趣的朋友可以关注我或者我的数据分析专栏,里面有许多优质的文章跟大家分享哦。…

friedman test的原理及r实现

目录 背景: 原理和步骤: r实现: 背景: 写论文的过程中常常涉及到将自己模型的结果与其它模型相比较,有时候仅仅把两个(或多个)模型在若干个样本上的预测效果(例如准确率&#…

学完后端还要学前端,在这之间还有中间件?我晕了,小结一下吧

html语言-----超文本标记语言 标记—即标签的意思 简单的格式— 用记事本新建一个txt文档,在文档中加入以下内容,然后修改后缀名为 html或者htm,之后用浏览器打开 <html> <head> helloworld </head><body> 你好世界 </body></html>被所包…

抖音做综艺,差点意思

来源&#xff5c;燃次元编辑&#xff5c; 邓双琳 薛亚萍“你看抖音的选秀综艺《无限偶像》了吗&#xff1f;”“抖音&#xff1f;选秀&#xff1f;综艺&#xff1f;”手握6亿日活用户、拥有无限流量的抖音&#xff0c;在2020年底做了一档选秀综艺&#xff0c;目前&#xff0c;这…

Python 模块大全(很详细!)

转载&#xff1a;。。。。Python的模块大全&#xff0c;很全&#xff0c;有详细介绍&#xff01;另外附Python两个教程1. Python详细教程&#xff08;廖雪峰的官方网站&#xff0c;语言简洁&#xff01;&#xff09;2. Python 进阶教程 &#xff08;Vamei&#xff09;3. Python…

2018年的第一把火:直播问答的后博弈时代如何演进?

毋庸置疑&#xff0c;进入2018年&#xff0c;直播问答首当其冲&#xff0c;成了最先火起来的一款互联网产品&#xff0c;而且是被迅速引燃。一方面&#xff0c;今日头条&#xff08;西瓜视频&#xff09;推《百万英雄》&#xff1b;另一方面&#xff0c;主流直播平台基本上都已…