
linux 基準測試

Linux’s command-line utilities can do anything, including perform benchmarks – but using a dedicated benchmarking program is a simpler and more foolproof process. These utilities allow you to perform reproducible tests across different systems and configurations.
Linux的命令行實用程序可以執行任何操作,包括執行基準測試-但是使用專用的基準測試程序是一個更簡單,更簡單的過程。 這些實用程序使您可以在不同的系統和配置之間執行可重復的測試。
These Linux benchmarking tools aren’t as popular, well-known, or polished as their Windows equivalents, but they allow you to easily compare different systems and evaluate their performance.
這些Linux基準測試工具不像Windows同類工具那樣流行,知名或完善,但是它們使您可以輕松比較不同的系統并評估其性能。
Hardinfo – CPU基準測試 (Hardinfo – CPU Benchmark)
Hardinfo isn’t installed by default on Ubuntu, but it’s available in the Ubuntu Software Center – just do a search for “hardinfo” and install the System Profiler and Benchmark application. If you’re using another Linux distribution, search your package manager for the “hardinfo” package.
Hardinfo默認未在Ubuntu上安裝,但可以在Ubuntu Software Center中獲得–只需搜索“ hardinfo”并安裝System Profiler和Benchmark應用程序。 如果您使用的是其他Linux發行版,請在程序包管理器中搜索“ hardinfo”程序包。

Once it’s installed, launch the System Profiler and Benchmark application from the Dash.
安裝完成后,從Dash啟動System Profiler和Benchmark應用程序。

Hardinfo displays a information about your system, its hardware, and its configuration. Using the Generate Report feature, you can save a report and select the information – including benchmarks – you want to include.
Hardinfo顯示有關您的系統,其硬件及其配置的信息。 使用“生成報告”功能,可以保存報告并選擇要包括的信息(包括基準)。

Scroll to the bottom of the list and select one of the six CPU benchmarks to benchmark your CPU. Hardinfo will compare the performance of your CPU to other CPUs. The CPU benchmark can be useful if you’re trying to compare CPU speed between computers or determine the effects of an overclock.
滾動到列表的底部,然后選擇六個CPU基準之一來基準化您的CPU。 Hardinfo將比較您的CPU與其他CPU的性能。 如果要比較計算機之間的CPU速度或確定超頻的影響,則CPU基準測試可能會很有用。

GtkPerf – GTK +基準 (GtkPerf – GTK+ Benchmark)
GtkPerf is another benchmark tool you’ll find in Ubuntu’s Software Center and other Linux distribution’s package managers.
GtkPerf是另一個基準測試工具,可以在Ubuntu的軟件中心和其他Linux發行版的軟件包管理器中找到。

GtkPerf tests the performance of the GTK+ graphical toolkit, used by GNOME and Ubuntu’s default desktop applications. Using GtkPerf, you can measure the performance difference between different GTK+ themes, different GTK+ versions, and different versions of your X server and graphics drivers.
GtkPerf測試了GNOME和Ubuntu默認桌面應用程序使用的GTK +圖形工具箱的性能。 使用GtkPerf,您可以測量不同的GTK +主題,不同的GTK +版本以及X服務器和圖形驅動程序的不同版本之間的性能差異。

Start the benchmark and GtkPerf will perform GTK+ widget operations and time how long they take to complete.
啟動基準測試,GtkPerf將執行GTK +小部件操作以及完成操作所需的時間。

The test is reproducible, so you can use GtkPerf to test the performance of GTK+ across multiple computers and platforms.
該測試具有可重復性,因此您可以使用GtkPerf在多臺計算機和平臺上測試GTK +的性能。

Phoronix測試套件–綜合基準 (Phoronix Test Suite – Comprehensive Benchmarks)
The Phoronix Test Suite – also known as pts – was created by the Phoronix website to run the reproducible tests used for the benchmarks you’ll find in Phoronix’s articles. It bills itself as “the most comprehensive benchmarking platform available for Linux.” You’ll find it in Ubuntu’s Software Center and other Linux distribution’s package managers, too.
Phoronix測試套件(也稱為pts)是由Phoronix網站創建的,用于運行用于可在Phoronix文章中找到的基準的可再現測試。 它自稱為“可用于Linux的最全面的基準測試平臺”。 您也可以在Ubuntu的軟件中心和其他Linux發行版的程序包管理器中找到它。

The Phoronix Test Suite’s terms of use say your test results will be shared publically if you choose to submit them, and that enabling the anonymous reporting features will cause PTS to upload anonymous data – type Y to agree to them. After you do, you can select whether or not to enable anonymous reporting features.
Phoronix測試套件的使用條款規定,如果您選擇提交測試結果,則將公開共享您的測試結果;啟用匿名報告功能將導致PTS上傳匿名數據–輸入Y表示同意。 完成后,您可以選擇是否啟用匿名報告功能。

The Phoronix Test Suit provides a menu of benchmarking and information options to select from.
Phoronix測試服提供了基準測試和信息選項菜單供您選擇。

To perform a single test, type 1. You’ll be presented with a list of 126 tests to choose from. If a test requires additional software, the test suite will automatically download it.
要執行一個測試,請鍵入1。將顯示126個測試的列表供您選擇。 如果測試需要其他軟件,則測試套件將自動下載它。

To perform a suite of tests, type 2. There are 54 different test suites, ranging from audio and video encoding to ray tracing and networking.
要執行一組測試,請鍵入2。共有54種不同的測試套件,范圍從音頻和視頻編碼到射線追蹤和聯網。

To perform a complex system test, type 3. The complex system test includes five tests: the Apache Benchmark for web page serving performance, C-Ray for ray tracing performance, RAMspeed (two different configurations) for memory performance, and PostMark for disk transaction performance.
要執行復雜的系統測試,請鍵入3。復雜的系統測試包括五個測試:用于Web頁性能的Apache Benchmark,用于射線跟蹤性能的C-Ray,用于內存性能的RAMspeed(兩種不同的配置)和用于磁盤事務的PostMark。性能。

The results can be uploaded to and compared on OpenBenchmarking.org.
可以將結果上傳到OpenBenchmarking.org并進行比較。
How do you benchmark your Linux system’s performance? Leave a comment if you have any tricks to share.
您如何衡量Linux系統的性能? 如果您有任何技巧要分享,請發表評論。
翻譯自: https://www.howtogeek.com/111617/how-to-benchmark-your-linux-system-3-open-source-benchmarking-tools/
linux 基準測試