linux 基准测试_如何对Linux系统进行基准测试:3个开源基准测试工具

本文介绍了三款Linux基准测试工具:Hardinfo用于CPU性能测试,GtkPerf测试GTK+图形工具包性能,而Phoronix Test Suite则提供全面的基准测试。这些工具可以帮助用户在不同系统间对比和评估性能。
摘要由CSDN通过智能技术生成
linux 基准测试

linux 基准测试

header

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”程序包。

Screenshot at 2012-04-18 02^%56^%46

Once it’s installed, launch the System Profiler and Benchmark application from the Dash.

安装完成后,从Dash启动System Profiler和Benchmark应用程序。

Screenshot at 2012-04-18 02^%58^%39

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显示有关您的系统,其硬件及其配置的信息。 使用“生成报告”功能,可以保存报告并选择要包括的信息(包括基准)。

Screenshot at 2012-04-18 03^%08^%34

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基准测试可能会很有用。

Screenshot at 2012-04-18 03^%07^%05

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发行版的软件包管理器中找到。

Screenshot at 2012-04-18 03^%16^%23

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服务器和图形驱动程序的不同版本之间的性能差异。

Screenshot at 2012-04-18 03^%18^%44

Start the benchmark and GtkPerf will perform GTK+ widget operations and time how long they take to complete.

启动基准测试,GtkPerf将执行GTK +小部件操作以及完成操作所需的时间。

Screenshot at 2012-04-18 03^%19^%35

The test is reproducible, so you can use GtkPerf to test the performance of GTK+ across multiple computers and platforms.

该测试具有可重复性,因此您可以使用GtkPerf在多台计算机和平台上测试GTK +的性能。

Screenshot at 2012-04-18 03^%20^%27

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发行版的程序包管理器中找到它。

Screenshot at 2012-04-18 03^%28^%44

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表示同意。 完成后,您可以选择是否启用匿名报告功能。

Screenshot at 2012-04-18 03^%37^%02

The Phoronix Test Suit provides a menu of benchmarking and information options to select from.

Phoronix测试服提供了基准测试和信息选项菜单供您选择。

Screenshot at 2012-04-18 03^%37^%54

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个测试的列表供您选择。 如果测试需要其他软件,则测试套件将自动下载它。

Screenshot at 2012-04-18 03^%39^%59

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种不同的测试套件,范围从音频和视频编码到射线追踪和联网。

Screenshot at 2012-04-18 03^%41^%15

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。性能。

Screenshot at 2012-04-18 04^%54^%18

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 基准测试

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值