Guide |
A benchmark is a test or a series of tests to determine how well a computer's hardware is running. In many cases, a "benchmark" is actually equivalent to a "stress test." By testing the limits of the hardware, you can then compare the measured results with those measured by other hardware. |
Most benchmarks are designed to simulate the kind of workload that a PC encounters in real-world situations. Because of this, benchmarking is almost the only way to get quantitative data and understand how the system is performing--if your data is passable, this indicates that some PC parts should be upgraded.
one, integrated benchmark testing
The all-in-one benchmarking tool is also called a benchmark suite, just like the name: they test and measure all aspects of the system, rather than focusing on a particular hardware, which is useful if you don't want to mess up the system with three or four different tools.
Phoronix Test Kit
The Phoronix test suite is one of the most well-known integrated Linux benchmark solutions. Some people claim that it has many inherent problems; Of course, we will not say that it is perfect in every way, but it is good enough for most users. In addition, there are not many alternative packages that are worth using.
Phoronix can use more than 100 different test suites (that is, a set of group individual tests) and more than 450 different test profiles. You can choose to install only the part that you need, so if you only focus on processor and normal hard drive benchmarks, install "processor_tests" and "disk_tests". It also supports system logs and reports.
Best of all, Phoronix is free and open source. It also provides the form of live CD, called PTS Desktop Live, so you can run it directly from a CD, DVD or USB drive, so you can test any machine's hardware when you need to use a "clean" operating system.
2, Stress-ng
You might guess from the name that Stress-ng is a real stress test-it's great for testing the limits of a system, but because it's demanding, we don't recommend running it often. If the stress test is repeated, some parts, especially the processor and the ordinary hard drive, can be consumed faster.
Install Stress-ng on Debian and Ubuntu:
Install Stress-ng on Fedora, Red Hat, and CentOS:
sudo yum install Stress-ng
Once installed, Stress-ng can test a wide variety of components, including processor, memory, input/output, network, virtual memory, and more. It's also easy to configure-for each test, you can specify different parameters, such as how many test instances, how many processor cores, how much test strength, how long to run, etc.
It is not within the scope of this article to introduce all the different commands and parameters, but this page on Ubuntu wiki is a good starting point.
3, PassMark burnintest
PassMark has a wide variety of PC testing and monitoring software, including the famous MemTest86 and performancetest applications, which are intended for Windows users only. On the other hand, the BurnInTest application has a Linux version, which is undoubtedly worth trying.
In short, it can test all major subsystems of the computer at the same time. But instead of testing purely performance, it is more focused on stability and reliability. To get the best results, we recommend combining it with some other form of performance testing.
It offers a free 30-day trial service, and once the trial period is over, it will be charged (US $79).
second, the processor benchmark test
It is difficult to compare two different processors. Remember when you knew Pentium III was almost always better than the Pentium II day? Sometimes, i5 's performance trumps i7, and quad cores are not always better than double cores.
Because of this, the processor can get the most benefit from benchmarking-more than any other PC hardware. If you decide not to use this integration test, you can start with one of the two tools below.
1, Geekbench
Geekbench is one of the most outstanding processor benchmarks available on the market today. It comes with 10 integer workload tests and 8 floating-point workload tests-some of which are also included in Hardinfo (described below), but some of them are geekbench specific.
The Windows version and MAC version comes with a user interface, but the Linux version has only a command-line executable file. Benchmark results are uploaded to the web, allowing you to view scores in a more intuitive way than the terminal.
After uploading, Geekbench will run under a limited "try mode" (virtually unlimited free trial) with only 64-bit and OpenCL benchmarks. To get CUDA benchmarks, standalone mode and other features, you'll need to purchase Geekbench or Geekbench Pro.
2, Hardinfo
You can use the native Package Manager to get Hardinfo from most distributions, but I think it's easier to run this command on Deiban and Ubuntu:
sudo apt-get install Hardinfo
or run this command on Fedora, Red Hat, and CentOS:
sudo yum install Hardinfo
Hardinfo comes with 6 different benchmark tests, each of which provides a score that you can use to accurately compare with other systems. The processor tests perform integer operations and the FPU tests perform floating-point operations. When comparing the results, make sure that the same test is compared.
Hardinfo is also a useful way to get system information quickly, so you can view the details of your computer's configuration by browsing the individual pages in the sidebar.
third, GPU benchmark test
To test your system's graphics capabilities in a non-scientific way, just see if your PC can handle graphics-intensive games. To get more accurate results, just run these tests below.
1, Unigine
Unigine has two benchmarks worth mentioning: Valley Benchmark and Heaven benchmark. Each test renders a different scene (a valley of Forests and a series of floating islands, respectively), forcing your GPU to "work overtime".
This is the preferred graphical benchmark for most Linux gamers.
The free benchmark is interactive enough to get an idea of how good your GPU is, but for commercial use and in-depth frame-by-page analysis, the Pro edition is essential and priced at $495.
2, Gfxbench
Gfxbench, previously known as Glbenchmark, is a small-name for two of the main graphics benchmarks for Linux systems. It comes with two sets of tests: Advanced Testing (overall performance) and low-level testing (performance of a particular feature).
Four, data hard disk benchmark test
When it comes to hard drives that store data, speed is not always the most important. For example, when a hard disk is used to store backup content, the main problem is longevity, reliability, and capacity. But for daily operation, you need a high-performance SSD.
1, Hdparm
Hdparm is a command-line utility that is installed on most modern distributions and is very easy to use. It can be used not only to test the performance of the drive, but also to change the settings for each drive (such as turning DMA on or off). But be careful: if used improperly, Hdparm can cause drive crashes or damage!
First, use the DF command to list all drives on the system. Find the drive you want to test-if you're not sure, you can use the context, such as the total disk space or mount location, and then use it with the following commands. For the example of this article, my drive is/dev/sda2.
In order to test the buffered read performance:
sudo hdparm-t/dev/sda2/dev/sda2: Timing Buffered disk reads:180 MB in 3.00 seconds = 59.96 mb/sec '
In order to test cache read performance:
sudo hdparm-t/dev/sda2/dev/sda2: Timing cached reads:3364 MB in 2.00 seconds = 1682.75 mb/sec '
No matter which one you use, run the commands multiple times to get multiple readings, and then average them to understand performance more accurately. Make sure you are not doing anything else that might affect the readings, such as transferring files.
2, bonnie++
bonnie++ is a free utility designed to benchmark file system and hard drive performance. It is not installed directly on most distributions, but should appear in the core code base. You can use the following commands to install on Debian and Ubuntu:
sudo apt-get install bonnie++
Or use this command to install on Fedora, Red hat, or CentOS:
sudo yum install bonnie++
Once the installation is complete, the simplest way to run bonnie++ is to use the following command:
bonnie++-d/tmp-r 2048-u [username]
This will run the test in the/tmp directory (thus testing the performance of the drive where the/TMP is located), using parameters that indicate that the system has 2048MB of memory and that the test will run with the user right of [user name], which is jleeso in this article.
Not sure how much memory you have on your system? Use the free–m command to find Mem under the Totals column.
Finally, you'll see a comma-delimited line of different numbers. These are your results. Proportion:
1.96,1.96,ubuntu,1,1378913658,4g,,786,99,17094,3,15431,3,4662,91,37881,4,548.4,17,16,,,,, 142,0,+++++,+++,+++++ , +++,+++++,+++,+++++,+++,+++++,+++,16569us,15704ms,2485ms,51815us,491ms,261ms,291us,400us,710us,382us,42us, 787us
Copy it and enter the following command:
echo "[Paste your results]" | bon_csv2html >/tmp/test.html
Now, open/tmp/test.html in your Web browser and you'll see a table with a regular format showing the results, more at a glance.
How is your PC performing?
If your hardware benchmarks look good, but you still feel that the system is running slowly, be aware that there are several other factors that may be being sung. Yes, slow hardware is often a bottleneck, but you should pay attention to other aspects before you spend your money on upgrades.
For example, on Ubuntu, there are some tips and tricks to speed up your daily operations (non-Ubuntu distributions have their own speed-up tips and methods). You should also consider updating the underlying Linux kernel.
Originally from: http://www.linuxprobe.com/test-linux-performing.html
Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/
Teach you the performance of a Linux PC?