If you are using Linux on your system, it is a rare phenomenon that your system is not performing well.
But, "how fast?" is a question that we often ask ourselves or wonder when thinking to compare our experiences.
The easy and effective solution to know that is to benchmark your Linux system.
So, how do you do that? Using some benchmarking tools. And, what are the benchmarking tools available on Linux?
Fret not, in this article, I shall guide you with the tools with which you can perform a Linux system benchmark for all kinds of use-cases.
To ensure your system runs the best, you need the correct drivers, up-to-date software, performance-focused desktop environment, a stable kernel, and a few other things.
How to evaluate the benchmark results?
With every benchmark tool, you end up getting a final score.
The score alone is not meaningful unless you have a comparison in mind.
You can either perform benchmarks on two different systems to measure the performance gap. Or, you can benchmark the same system at different time intervals to check if a configuration/system update impacted the performance in any way.
For example, you benchmark the system right after you set it up for the first time, and then after a few months.
Some tools also provide you with access to a leaderboard chart, where you can see scores of systems with various hardware configurations. You may also find them mention a "baseline" which is a reference score of a particular hardware.
For instance, Geekbench utilizes 2500 as baseline score, which is for an i7-12700 processor. You can know if your CPU performs better or worse accordingly.
In either case, you can check the Geekbench website that ranks all processors, and then compare it against your score.
It is recommended to use the same benchmark test/tool when comparing multiple systems.
4 tools that can help you benchmark your Linux computer
Some benchmarking tools are open source, while a few are not. Some are available as a standalone tool for a quick check, and some help you take an in-depth analysis of your system (which is not needed for everyone).
I list the best ones to help you get the job done.
1. UnixBench
• Traditional test
• Open Source
• Easy to Use
One of the most traditional open source benchmark suite is UnixBench.
It is derived from the original BYTE UNIX benchmark app built back in 1983, and has been maintained over the years with several revisions. It may not be the most modern solution out there, but it performs essential tests that have been long proven to be indicators of performance.
You get around ten different tests which include basic 2D/3D graphics, process creation, string handling, floating-point operations, file copy, and a couple of others.
It is alright if you do not understand the meaning of the tests it performs. All you need to know is that it performs a type of stress test of your entire system (not just a part of it). So, the results will depend on the operating system, libraries, hardware, and compiler.
Once installed, you just have to run it by typing the following command:
ubench
Here's how the results look:
As you can see in the screenshots, as the test progresses (and completes), you can head to the mention directory (usr/lib/unixbench/results) to get the details. You should find HTML and log files, access what you are comfortable with.
You can install it via AUR for Arch Linux. And, for Ubuntu-based distros, it is available as a Snap.
2. Geekbench
• Modern benchmark suite
• Cross-Platform
• Proprietary
• Uploads results to Geekbench website directly
If you want a modern tool to benchmark your entire system and do not mind if it is not open source, Geekbench is one of the most popular option.
There is no binary available for Linux distros. However, you just have to download a tar.gz file and run the executable via the terminal (no need of sudo) using the following command inside the extracted folder:
./geekbench_x86_64
It worked like charm for me.
It will automatically start running single-core, and multicore tests like Ray Tracer, File Compression, HTML5 browser test, PDF Renderer, and several others. In my testing, it took around 2–5 minutes to complete.
All you have to do is click on the URL provided to check your results.
3. Hardinfo2
• Graphical User Interface
• Open Source
• Easy to Use
Hardinfo2 is a multipurpose tool with which you can get essential information on your system's network, firmware, and hardware. And, of course, it lets you run benchmarks.
Unlike the above two tools, it does not perform a complete benchmark, but allows you to choose what to test (CPU/Memory/Storage/Graphics).
And, it is a complete GUI program. So, you do not need type any commands. Just head to the test you want to perform, and once it is done, it will show you the result along with a reference ranking compared to other hardware.
You can decide to generate a report for all the benchmarks you perform (HTML file) and access it separately.
I installed it via AUR on Arch Linux. You can find it in your default Linux repositories. In either case, you can build it from source using the instructions on its GitHub page.
Suggested Read 📖
4. Phoronix Test Suite
• Cross-Platform
• Open Source
• Comprehensive tests for advanced users
One of the most advanced (and useful) benchmark applications is the Phoronix Test Suite. While it is available for all platforms, you can expect the full feature-set on Linux, for which it is tailored for.
It has a massive collection of tools that are installable, as per your requirements. For instance, you can install Geekbench from within the Phoronix Test Suite. Of course, that is a bit redundant in our use-case.
I had to install the suite first, then the test(s) I wanted to perform, and then run them.
The command for installing a test and running it looks like (ignore words with #):
phoronix-test-suite install pts/sysbench #installing
phoronix-test-suite run pts/sysbench #running
Unfortunately, some tests like pts/browsers failed, while pybench (benchmark inspired by geekbench) and sysbench (open source benchmark) tests worked like charm. If you wish to test various aspects of your system using a set of tools (not just limited to one), Phoronix Test Suite is for you.
Moreover, it makes use of OpenBenchmarking.org to which you can upload your test results, and compare it with great details with other combination of hardware.
You can install the suite via AUR for Arch Linux with phoronix-test-suite as the package name or download the deb package from its GitHub releases for Ubuntu-based distros.
Do you really need benchmarking?
It depends on what you are looking for but benchmarking could give you some ideas about how your computer is performing with the operating system.
For instance, when I switched from Ubuntu to Archcraft, and I noticed a few performance improvements. In my case, there were visual indicators for me to say that.
But, in many scenarios, you cannot easily gauge the difference unless you extensively use/keep track of file extraction times, boot times, CPU performance, and other resource efficiency/usage stats.
Similarly, maybe you are switching to another distro, and want to check the performance difference. Or, perhaps, you just built a new computer, and want to test the waters before you start using it.
Benchmarking Linux can be helpful in such cases.
💬 Do you perform a system benchmark? Let me know your thoughts in the comments below!
from It's FOSS https://ift.tt/3BaC4cI
via IFTTT
Tidak ada komentar:
Posting Komentar