Ubuntu測試-使用phoronix-test-suite

phoronix-test-suite是一個全面的測試工具套件,能夠測試硬件基準參數和應用軟件的性能表現。phoronix-test-suite能夠支持多種操做系統和多種測試方案,並且免費,還能夠將測試結果上傳到網站、進行多種方案的比較,以便選擇最佳配置。php

說明:html

  • 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方式運行,但我運行時掛起,多是網絡問題。

一、下載

二、安裝

運行:shell

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

不過,出現了一些錯誤。我安裝了build-essential,而後按照提示進行安裝包修復就能夠用了。json

三、運行

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]  ...

下面是一些例子:框架

運行一個小的測試集合:dom

phoronix-test-suite benchmark smallpt

測試磁盤IO性能:ide

phoronix-test-suite run iozone

測試文件IO性能:工具

phoronix-test-suite benchmark fio

四、參數

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

五、參考文檔

相關文章
相關標籤/搜索