Ubuntu测试-使用phoronix-test-suite

原创
2018/10/22 14:02
阅读数 6.3K

phoronix-test-suite是一个全面的测试工具套件,可以测试硬件基准参数和应用软件的性能表现。phoronix-test-suite可以支持多种操作系统和多种测试方案,而且免费,还可以将测试结果上传到网站、进行多种方案的比较,以便选择最佳配置。

说明:

  • phoronix-test-suite本身是一个框架,而不是测试程序,不能直接运行测试。
  • phoronix-test-suite是按照测试方案来组织测试的,可以从网上直接下载方案,也可以自己构建后上传。
    • 列出已有的测试方案:phoronix-test-suite list-all-tests
    • 列出可用的测试方案:phoronix-test-suite list-available-tests
    • 列出可用的测试套件:phoronix-test-suite list-available-suites
  • phoronix-test-suite支持GUI和WebServer方式运行,但我运行时挂起,可能是网络问题。

1、下载

2、安装

运行:

sudo dpkg -i phoronix-test-suite_8.2.0_all.deb

不过,出现了一些错误。我安装了build-essential,然后按照提示进行安装包修复就可以用了。

3、运行

phoronix-test-suite有运行测试套件的方式有多种,提供各种测试的需要,包括:

  • auto-compare       
  • benchmark          [Test | Suite | OpenBenchmarking ID | Test Result]  ...
  • estimate-run-time  [Test | Suite | OpenBenchmarking ID | Test Result]
  • finish-run         [Test Result]
  • run                [Test | Suite | OpenBenchmarking ID | Test Result]  ...
  • run-random-tests   
  • run-tests-in-suite
  • stress-run         [Test | Suite | OpenBenchmarking ID | Test Result]  ...

下面是一些例子:

运行一个小的测试集合:

phoronix-test-suite benchmark smallpt

测试磁盘IO性能:

phoronix-test-suite run iozone

测试文件IO性能:

phoronix-test-suite benchmark fio

4、参数

supermap@superbox:~$ phoronix-test-suite --help


Phoronix Test Suite v8.2.0 (Rakkestad)

The **Phoronix Test Suite** is the most comprehensive testing and benchmarking platform available for Linux, Solaris, OS X, and BSD operating systems. The Phoronix Test Suite allows for carrying out tests in a fully automated manner from test installation to execution and reporting. All tests are meant to be easily reproducible, easy-to-use, and support fully automated execution. The Phoronix Test Suite is open-source under the GNU GPLv3 license and is developed by Phoronix Media in cooperation with partners.

View the included PDF / HTML documentation or visit http://www.phoronix-test-suite.com/ for full details.

SYSTEM

    diagnostics    
    interactive    
    php-conf       
    shell          
    system-info    
    system-sensors 

TEST INSTALLATION

    force-install         [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    install               [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    install-dependencies  [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    make-download-cache   
    remove-installed-test [Test]

TESTING

    auto-compare       
    benchmark          [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    estimate-run-time  [Test | Suite | OpenBenchmarking ID | Test Result]
    finish-run         [Test Result]
    run                [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    run-random-tests   
    run-tests-in-suite 
    stress-run         [Test | Suite | OpenBenchmarking ID | Test Result]  ...

BATCH TESTING

    batch-benchmark   [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    batch-install     [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    batch-run         [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    batch-setup       
    default-benchmark [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    default-run       [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    internal-run      [Test | Suite | OpenBenchmarking ID | Test Result]  ...

OPENBENCHMARKING.ORG

    clone-result                  [OpenBenchmarking ID]  ...
    list-recommended-tests        
    make-openbenchmarking-cache   
    openbenchmarking-changes      
    openbenchmarking-login        
    openbenchmarking-refresh      
    openbenchmarking-repositories 
    openbenchmarking-uploads      
    upload-result                 [Test Result]
    upload-test-profile           
    upload-test-suite             

INFORMATION

    info                          [Test | Suite | OpenBenchmarking ID | Test Result]
    list-all-tests                
    list-available-suites         
    list-available-tests          
    list-available-virtual-suites 
    list-cached-tests             
    list-installed-dependencies   
    list-installed-suites         
    list-installed-tests          
    list-missing-dependencies     
    list-not-installed-tests      
    list-possible-dependencies    
    list-saved-results            
    list-test-usage               
    list-unsupported-tests        
    search                        

ASSET CREATION

    build-suite               
    create-test-profile       
    debug-benchmark           [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    debug-install             [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    debug-result-parser       [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    debug-test-download-links [Test | Suite | OpenBenchmarking ID | Test Result]
    download-test-files       [Test | Suite | OpenBenchmarking ID | Test Result]  ...
    inspect-test-profile      [Test]
    result-file-to-suite      [Test Result]
    validate-result-file      
    validate-test-profile     [Test]
    validate-test-suite       

RESULT MANAGEMENT

    analyze-all-runs                 [Test Result]
    auto-sort-result-file            [Test Result]
    edit-result-file                 [Test Result]
    extract-from-result-file         [Test Result]
    merge-results                    [Test Result]  ...
    refresh-graphs                   [Test Result]
    remove-from-result-file          [Test Result]
    remove-result                    [Test Result]
    rename-identifier-in-result-file [Test Result]
    rename-result-file               [Test Result]
    reorder-result-file              [Test Result]
    result-file-to-csv               [Test Result]
    result-file-to-json              [Test Result]
    result-file-to-pdf               [Test Result]
    result-file-to-text              [Test Result]
    show-result                      [Test Result]
    winners-and-losers               [Test Result]

OTHER

    commands                 
    debug-dependency-handler 
    debug-render-test        
    debug-self-test          
    help                     
    version                  

MODULES

    auto-load-module 
    list-modules     
    module-info      [Phoronix Test Suite Module]
    module-setup     [Phoronix Test Suite Module]
    test-module      [Phoronix Test Suite Module]
    unload-module    

USER CONFIGURATION

    enterprise-setup  
    network-info      
    network-setup     
    user-config-reset 
    user-config-set   

WEB / GUI SUPPORT

    gui 

PHOROMATIC

    start-phoromatic-server 

5、参考文档

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部