基准用于评估软件应用程序(assess the performance of software applications)和计算机硬件的性能。在Windows PC 游戏社区中很(Windows PC gaming community)受欢迎(Popular),硬件基准测试测量各种属性,例如内存、处理器和硬盘性能。
这些诊断也可以在大多数Linux操作系统上执行,并使Linux用户能够通过提供有关其功能和翻新需求的信息来确定其计算机硬件的运行情况。(computer hardware)Linux系统基准测试的结果将有助于确定用户是否应该对硬件进行任何更改并识别系统瓶颈。
有许多开源Linux基准测试工具可用于帮助用户通过客观比较来微调他们的网络和系统。本文将概述可用于执行Linux系统基准测试的几种工具。
Hardinfo提供基本的基准测试和详细的系统信息,并且在大多数Linux发行版存储库中都可用。它还将生成综合报告。
- 下载并安装(Download and install)Hardinfo
- 要启动应用程序,请转到系统工具(System Tools)>系统分析器和基准测试(System Profiler and Benchmark)
- 或者,从命令行启动$ hardinfo
Hardinfo中提供了以下测试:
- CPU 斐波那契
- CPU 河豚
- FPU 光线追踪
- CPU 加密哈希
- CPU N 皇后
- FPU FFT
上述每个Linux系统基准测试都将提供一个分数,您可以使用该分数与其他系统进行比较。您还可以通过单击测试并查看计算机右侧的详细信息来快速获取系统信息。
要运行基准测试,请单击所需的选项卡。然后Hardinfo(Hardinfo)将运行测试。在右侧查看您的结果。
单击顶部工具栏中的生成报告(Generate Report),将设备、网络、计算机或基准测试结果导出到HTML文件。导出完成后,您将看到立即打开文件并查看的选项。
Phoronix 测试套件(Phoronix Test Suite)是免费和开源的,可以访问 100 多个Linux系统(Linux)基准测试套件和 450 多个测试配置文件。只安装您想要的测试并访问报告和系统日志。
您可以在 Ubuntu 的软件中心(Software Center)以及其他Linux分发包管理器中找到Phoronix 。它为用户提供了基准测试和信息选项菜单。
安装Phoronix 测试套件(Phoronix Test Suite)有三种方法。第一种方法是打开终端并使用以下命令进行安装:
# sudo apt-get install phoronix-test-suite
另一种方法是在Ubuntu 软件中心(Ubuntu Software Center)搜索Phoronix并安装该软件包。
或前往产品网站(product website)下载最新版本。下载后,使用以下命令从终端安装它:
# sudo dpkg -i /path/to/packagename.deb
您还必须使用以下命令安装基本依赖项:
php5-cli php5-gd
如上所述,Phoronix有超过 100 个测试。请记住,每个测试都需要您下载其依赖项。用户可以运行单个测试或测试组(套件)。创建您自己的套件或使用Phoronix提供的套件。
使用以下命令查看当前可用套件的列表:
# phoronix-test-suite list-available-suites
要查看当前可用的Linux系统基准测试列表,请使用以下命令:
# phoronix-test-suite list-available-tests
在Ubuntu上运行Phoronix之前,您必须先安装测试依赖包。在许多Linux发行版上,Phoronix可以使用软件包管理(software package management)系统来安装额外的依赖项(install additional dependencies)。
开始测试的最简单方法是查看可用测试的列表,选择一个,然后使用以下命令运行它:
# phoronix-test-suite benchmark <TEST NAME>
如果这是您第一次使用Phoronix,您需要回答几个问题然后接受用户协议。基准测试(Benchmarking)结果上传到OpenBenchmarking.org。
GtkPerf是一个测试套件,用于测量系统渲染线条、创建图形和滚动下拉菜单的速度。用户将能够测量其桌面的响应速度。
要安装它,请在终端中键入以下命令:
做 apt-get install gtkperf(do apt-get install gtkperf)
或者在您的软件包安装程序中搜索它。
当您启动Linux系统基准测试时,GtkPerf将执行GTK+小部件操作并让您知道它们需要多长时间。
用户可以使用GtkPerf重现测试以检查多个设备的系统性能。
Geekbench 是一个Linux系统基准测试工具,带有一个衡量单核和多核性能的评分系统。它仅在Linux中作为命令行可执行文件提供。
Geekbench得分越高,你的CPU越快越好。首先(Start)从官方下载页面(official download page)下载最新版本的Geekbench。
或者,使用以下命令将Geekbench下载到您的服务器:
wget http://cdn.geekbench.com/Geekbench-5.0.4-Linux.tar.gz
使用tar -zxvf Geekbench-5.0.4-Linux.tar.gz解压下载的文件。更改(Change)目录以转到您提取的 Geekbench 文件所在的文件夹:
cd Geekbench-4.3.3-Linux
使用以下命令在试用模式下运行测试:
./geekbench_x86_64
测试完成后,您将看到每个测试的唯一网站链接,以查看您的结果。结果被组织成一个表格。
完整的分数在表的顶部。滚动(Scroll)查看您运行的每个测试的结果。
结果被上传到网上(uploaded to the web),使您能够浏览您的分数。
使用(Use)上面的一些Linux系统基准测试工具来评估您的系统的性能和强度,并将您的结果与其他计算机进行比较。基准测试过程将帮助您找到薄弱环节并在必要时进行升级。
How to Take a Linux System Benchmark
Βеnchmarks are used to assess the performance of software applications and computer hardware. Popular among the Windows PC gaming community, hardware benchmarking measures various attributes, such as memory, processor, and hard disk performance.
These diagnostics can also be carried out on most Linux OS’s and enables Linux users to determine how well their computer hardware is running by providing information about its capabilities and the need for refurbishments. The results of a Linux system benchmark will help determine if users should make any changes to hardware and identify system bottlenecks.
There are many open-source Linux benchmarking tools available to help users fine-tune their network and system with objective comparisons. This article will outline several tools available to perform a Linux system benchmark.
Hardinfo provides both basic benchmarks and detailed system information and is available in most Linux distribution repositories. It will also generate comprehensive reports.
- Download and install Hardinfo
- To launch the application, go to System Tools > System Profiler and Benchmark
- Or, launch from the command line $ hardinfo
The following tests are available in Hardinfo:
- CPU Fibonacci
- CPU Blowfish
- FPU Raytracing
- CPU CryptoHash
- CPU N-Queens
- FPU FFT
Each of the above Linux system benchmark tests will provide a score that you can use to compare with other systems. You can also get quick system information by clicking on a test and seeing the details on the right side of your computer.
To run a benchmark, click on the tab you want. Hardinfo will then run the test. See your results on the right-hand side.
Click on Generate Report from the top toolbar to export the device, network, computer, or benchmark results to an HTML file. After the export is complete, you will see an option to open the file immediately and view it.
The Phoronix Test Suite is free and open-source with access to more than 100 Linux system benchmark test suites and more than 450 test profiles. Only install the tests you want and get access to reports and system logs.
You can find Phoronix in Ubuntu’s Software Center as well as other Linux distribution package managers. It provides users with a menu of benchmarking and information options.
There are three ways to install the Phoronix Test Suite. The first method is to open terminal and install it with the following command:
# sudo apt-get install phoronix-test-suite
Another method is to search for Phoronix in the Ubuntu Software Center and install the package.
Or go to the product website and download the latest version. Once downloaded, install it from terminal using the command below:
# sudo dpkg -i /path/to/packagename.deb
You must also install the basic dependencies with this command:
php5-cli php5-gd
As mentioned above, Phoronix has over 100 tests. Keep in mind that each test requires you to download its dependencies. Users can run individual tests or groups (suites) of tests. Create your own suites or use the ones provided by Phoronix.
Use the command below to view a list of currently available suites:
# phoronix-test-suite list-available-suites
To view the list of currently available Linux system benchmark tests, use the following command:
# phoronix-test-suite list-available-tests
Before you can run Phoronix on Ubuntu, you must install the test dependency packages first. On many Linux distros, Phoronix can use the software package management system to install additional dependencies.
The easiest way to start testing is to look at the lists of available tests, choose one, and run it by using the following command:
# phoronix-test-suite benchmark <TEST NAME>
If this is your first time using Phoronix, you will need to answer a few questions and then accept the user agreement. Benchmarking results are uploaded to OpenBenchmarking.org.
GtkPerf is a test suite used to measure how fast your systems renders lines, creates graphics, and scrolls through dropdowns.Users will be able to get a measurement of how responsive their desktop is.
To install it, type the following command into a terminal:
do apt-get install gtkperf
Or search for it in your package installer.
When you start the Linux system benchmark, GtkPerf will perform GTK+ widget operations and let you know how long they take.
Users can reproduce tests with GtkPerf to check system performance across multiple devices.
Geekbench is a Linux system benchmark tool with a scoring system that measures single and multi-core performance. It is only available as a command-line executable in Linux.
The higher the Geekbench score, the faster and better your CPU. Start by downloading the latest version of Geekbench from the official download page.
Or, download Geekbench to your server with the command below:
wget http://cdn.geekbench.com/Geekbench-5.0.4-Linux.tar.gz
Use tar -zxvf Geekbench-5.0.4-Linux.tar.gz to extract the downloaded files. Change directories to go to the folder where your extracted Geekbench files are located:
cd Geekbench-4.3.3-Linux
Use the command below to run the test in tryout mode:
./geekbench_x86_64
When the test is completed, you will see a unique website link for each test to view your results. The results are organized into a table.
The complete score is at the top of the table. Scroll through to see the results for each test you ran.
Results are uploaded to the web, enabling you to browse your scores.
Use some of the Linux system benchmark tools above to assess your system’s performance and strength and compare your results to other computers. The benchmarking process will help you find weak links and upgrade where necessary.