Phoronix Test Suite测试套件安装使用说明

2020-09-17 0 2,647 百度已收录

1、介绍

Phoronix Test Suite是一款性能测试软件,其实就是一款集中测试软件,可以在Linux, Solaris, OS X, 和 BSD操作系统上进行benchmark测试。该软件集成了各式各样的测试软件,但是每个测试项都要联网下载。

默认自带60多个测试套件和200多个独立的测试profile。每个profile都可以在phoronix-test-suite中单独进行测试。测试套件则由一组测试profile组成。一个profile由Bash/shell脚本和xml文件组成。

2、安装

必要条件

工具解压即可使用,但是需要如下预置:

需要安装php5(通过yum源安装即可,yum install php)

需要PHP都DOM扩展,文档对象模型(Document Object Model,DOM)是一种用于HTML和XML文档的编程接口。它给文档提供了一种结构化的表示方法,可以改变文档的内容和呈现方式。#yum install php-xml,会需要一个依赖包(libxslt),yum会自动匹配并安装。

开始安装相关依赖包

yum install -y php-cli php-gd php-xml

Phoronix Test Suite测试套件安装使用说明

yum install -y unzip patch bzip2

Phoronix Test Suite测试套件安装使用说明

yum install -y tcl, autoconf popt-devel libaio-devel qt4-devel gmp-devel

Phoronix Test Suite测试套件安装使用说明

Phoronix Test Suite装部署

官网:http://www.phoronix-test-suite.com/

最新版下载:https://phoronix-test-suite.com/releases/phoronix-test-suite-8.6.1.tar.gz

$tar -zxvf phoronix-test-suite-8.6.1.tar.gz

发现里面有个install-sh的脚本文件

执行安装脚本

[linuxidc@localhost phoronix-test-suite]$ sudo ./install-sh
[sudo] linuxidc 的密码

Phoronix Test Suite Installation Completed

Executable File: /usr/bin/phoronix-test-suite
Documentation: /usr/share/doc/phoronix-test-suite/
Phoronix Test Suite Files: /usr/share/phoronix-test-suite/

Phoronix Test Suite测试套件安装使用说明

3、下载测试套件

一般在默认情况下,测试套件都会联网下载。但是如果我们在无网络环境下,可以根据预先离线下载测试套件。
网址:http://openbenchmarking.org/
网址:http://www.phoronix.com/

4、常用命令

$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测试使用

基本使用语法如下:

phoronix-test-suite [options]

phoronix-test-suite benchmark [test | suite]

常用的还有

phoronix-test-suite install

phoronix-test-suite run

benchmark

以phoronix-test-suite benchmark为例

[linuxidc@localhost Linux公社 www.linuxidc.com]$ phoronix-test-suite benchmark smallpt

这条命令表示下载、安装、执行并报告一个简单CPU测试smallpt。

这个benchmark命令把整套测试工作(下载、安装、执行并报告)给执行完毕了。

[linuxidc@localhost Linux公社 www.linuxidc.com]$ phoronix-test-suite benchmark smallpt

Phoronix Test Suite v8.6.1

    Installed:    pts/smallpt-1.2.0

System Information

  PROCESSOR:          Intel Core i5-8250U
    Core Count:      1                                       
    Extensions:      SSE 4.2 + AVX2 + AVX + RDRAND + FSGSBASE
    Cache Size:      6144 KB                                 
    Microcode:        0x96                                   
    Scaling Driver:  intel_pstate performance               

……

    Would you like to save these test results (Y/n):Y

Phoronix Test Suite测试套件安装使用说明

/*该测试命令先下载安装smalltp测试套件,并识别系统信息。最后一条显示是否保存测试结果,选择Y,提示输入一个保存文件的结果名字和描述附后,如下段文字显示,完毕后开始启动测试:*/

    Enter a name for the result file: linuxidc //输入结果文件的名称
    Enter a unique name to describe this test run / configuration: linuxmi  //输入唯一名称来描述此测试运行/配置

If desired, enter a new description below to better describe this result set / system configuration under test.
Press ENTER to proceed without changes.

Current Description: VMware testing on CentOS Linux 7 via the Phoronix Test Suite.

New Description:  //直接回车吧

Smallpt 1.0:
    pts/smallpt-1.2.0
    Test 1 of 1
    Estimated Trial Run Count:    3                   
    Estimated Time To Completion: 6 Minutes [23:57 CST]
        Started Run 1 @ 23:52:02

 

/可以选择是否上传到官网,这样可以和其他测试人员数据进行对比/
Would you like to upload the results to OpenBenchmarking.org (Y/n):    Would you like to attach the system logs (lspci, dmesg, lsusb, etc) to the test result (Y/n):

Results Uploaded To: http://openbenchmarking.org/result/[testid]
ps:本地的测试结果保存在 /var/lib/phoronix-test-suite/test-results/ptstestnmae文件夹中。是否上传在测试结束时候可以进行人工选择。
如果上传了,可以通过登陆

http://openbenchmarking.org/result/[testid]
本次测试结果中显示了CPU、主板内存硬盘操作系统、显卡、网络、文件系统、编译器等系统信息。

Apache 业务环境测试

单位:Requests Per Second(每秒请求)(数值越大越好

[linuxidc@localhost Linux公社 www.linuxidc.com]$ phoronix-test-suite benchmark apache

 

  Average: 5395.55 Requests Per Second
    Deviation: 25.96%

    [PROBLEM] Unable to obtain pts/encode-mp3-1.7.2 from OpenBenchmarking.org. If this issue persists, contact support@phoronix-test-suite.com.
         
         

    [PROBLEM] Unable to obtain pts/compress-zstd-1.1.0 from OpenBenchmarking.org. If this issue persists, contact support@phoronix-test-suite.com.
         
         

    Result compared to 2,084 OpenBenchmarking.org samples; median: 13670.95. Box plot of sampling:
    [  |———*#####*#############*#!#####*#################————-*—————*——-*—–| *  ]
                  ^ This Result (21st Percentile): 5396
            2 x Intel Xeon E5-2630 v3: 15751 ^  Intel Core i9-9900K: 27464 ^    Intel Core i3-8100: 39689 ^
              Intel Xeon X3440: 12764 ^                                  Intel Core i7-8700K: 36710 ^
                        ^ ARMv8 rev 0: 7642                      Intel Core i7-5820K: 33667 ^

    OpenBenchmarking.org Dynamic Comparison:
    Requests Per Second > Higher Is Better
    Result ……….. 5396  |==================
    ARMv8 a1.large … 5542  |===================
    ARMv8 a1.2xlarge . 7111  |========================
    ARMv8 a1.4xlarge . 7231  |========================
    ARMv8 a1.xlarge .. 7484  |=========================
    AMD m5a.large …. 9225  |===============================
    AMD m5a.4xlarge .. 10274 |===================================
    AMD m5a.2xlarge .. 10534 |====================================
    AMD m5a.xlarge … 13871 |===============================================
    Intel m5.large … 14337 |================================================
    Intel m4.xlarge .. 21696 |=========================================================================
    Intel m5.2xlarge . 24547 |===================================================================================
    Intel m5.4xlarge . 24607 |===================================================================================

Phoronix Test Suite测试套件安装使用说明

Phoronix Test Suite 8.6.1 发布,开源跨平台的基准测试工具  https://www.linuxidc.com/Linux/2019-02/157045.htm

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

栗子博客 软件 Phoronix Test Suite测试套件安装使用说明 https://www.lizi.tw/soft/13632.html

建筑工地上施工员,闲暇时弄个博客打发时间,

常见问题
  • 1、杰齐1.7仅适用于PHP5.2 2、需Zend支持 3、尽量使用宝塔面板 4、尽量使用Windows 系统,关关对Linux支持不太友好。
查看详情

相关文章

评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

Phoronix Test Suite测试套件安装使用说明-海报

分享本文封面