Linux, renowned for its flexibility, security, and performance, is a popular operating system choice for a wide range of applications, from personal computers to servers. One aspect that continually draws attention is its performance capabilities. Benchmarking tools play a crucial role in assessing the performance of Linux systems, aiding users and administrators in optimizing their setups for maximum efficiency.

YABS (Yet Another Bench Script)

YABS, as the name suggests, is a comprehensive benchmarking script designed to provide detailed insights into system performance. It utilizes Geekbench 6 by default, offering a thorough analysis of CPU and memory performance. YABS is simple to use, requiring only a single command for execution:

curl -sL yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2024-03-05                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Tue Apr 16 19:40:45 CEST 2024

Basic System Information:
---------------------------------
Uptime     : 6 days, 8 hours, 42 minutes
Processor  : Intel Core Processor (Haswell, no TSX)
CPU cores  : 1 @ 2394.454 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ✔ Enabled
RAM        : 1.9 GiB
Swap       : 0.0 KiB
Disk       : 19.3 GiB
Distro     : Ubuntu 23.10
Kernel     : 6.5.0-27-generic
VM Type    : KVM
IPv4/IPv6  : ✔ Online / ✔ Online

IPv6 Network Information:
---------------------------------
ISP        : OVH SAS
ASN        : AS16276 OVH SAS
Host       : OVH GmbH
Location   : Frankfurt am Main, Hesse (HE)
Country    : Germany

fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/sda1):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 16.01 MB/s    (4.0k) | 257.46 MB/s   (4.0k)
Write      | 16.04 MB/s    (4.0k) | 258.82 MB/s   (4.0k)
Total      | 32.06 MB/s    (8.0k) | 516.28 MB/s   (8.0k)
           |                      |
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 827.74 MB/s   (1.6k) | 707.65 MB/s    (691)
Write      | 871.72 MB/s   (1.7k) | 754.78 MB/s    (737)
Total      | 1.69 GB/s     (3.3k) | 1.46 GB/s     (1.4k)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping
-----           | -----                     | ----            | ----            | ----
Clouvider       | London, UK (10G)          | 97.7 Mbits/sec  | 97.5 Mbits/sec  | 13.7 ms
Eranium         | Amsterdam, NL (10G)       | 97.2 Mbits/sec  | 97.6 Mbits/sec  | 9.81 ms
Telia           | Helsinki, FI (10G)        | 98.0 Mbits/sec  | busy            | 30.1 ms
Uztelecom       | Tashkent, UZ (10G)        | 95.4 Mbits/sec  | 94.5 Mbits/sec  | 89.7 ms
Leaseweb        | Singapore, SG (10G)       | 80.9 Mbits/sec  | 77.3 Mbits/sec  | 255 ms
Clouvider       | Los Angeles, CA, US (10G) | 89.9 Mbits/sec  | 92.8 Mbits/sec  | 146 ms
Leaseweb        | NYC, NY, US (10G)         | 94.1 Mbits/sec  | 94.8 Mbits/sec  | 85.4 ms
Edgoo           | Sao Paulo, BR (1G)        | 90.5 Mbits/sec  | 92.8 Mbits/sec  | 146 ms

iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping
-----           | -----                     | ----            | ----            | ----
Clouvider       | London, UK (10G)          | 96.3 Mbits/sec  | 96.3 Mbits/sec  | 13.9 ms
Eranium         | Amsterdam, NL (10G)       | 96.4 Mbits/sec  | 96.3 Mbits/sec  | 9.59 ms
Uztelecom       | Tashkent, UZ (10G)        | 94.1 Mbits/sec  | 92.1 Mbits/sec  | 89.2 ms
Leaseweb        | Singapore, SG (10G)       | 79.2 Mbits/sec  | 73.5 Mbits/sec  | 254 ms
Clouvider       | Los Angeles, CA, US (10G) | 89.1 Mbits/sec  | 91.4 Mbits/sec  | 146 ms
Leaseweb        | NYC, NY, US (10G)         | 93.0 Mbits/sec  | 93.8 Mbits/sec  | 85.1 ms
Edgoo           | Sao Paulo, BR (1G)        | 89.3 Mbits/sec  | 91.8 Mbits/sec  | 145 ms

Geekbench 6 test failed. Run manually to determine cause.

YABS completed in 12 min 34 sec

bench.sh

If you prefer visually appealing, colored terminal output, bench.sh is an excellent choice. This is my favourite benchmark tool. To initiate the benchmark, simply execute the following command:

curl -Lso- bench.sh | bash
-------------------- A Bench.sh Script By Teddysun -------------------
 Version            : v2023-10-15
 Usage              : wget -qO- bench.sh | bash
----------------------------------------------------------------------
 CPU Model          : Intel Core Processor (Haswell, no TSX)
 CPU Cores          : 1 @ 2394.454 MHz
 CPU Cache          : 16384 KB
 AES-NI             : ✓ Enabled
 VM-x/AMD-V         : ✓ Enabled
 Total Disk         : 19.3 GB (11.3 GB Used)
 Total Mem          : 1.9 GB (1.1 GB Used)
 System uptime      : 6 days, 8 hour 35 min
 Load average       : 0.18, 0.16, 0.12
 OS                 : Ubuntu 23.10
 Arch               : x86_64 (64 Bit)
 Kernel             : 6.5.0-27-generic
 TCP CC             : cubic
 Virtualization     : KVM
 IPv4/IPv6          : ✓ Online / ✓ Online
 Organization       : AS16276 OVH SAS
 Location           : Frankfurt am Main / DE
 Region             : Hesse
----------------------------------------------------------------------
 I/O Speed(1st run) : 635 MB/s
 I/O Speed(2nd run) : 594 MB/s
 I/O Speed(3rd run) : 644 MB/s
 I/O Speed(average) : 624.3 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency
 Speedtest.net    67.07 Mbps        62.81 Mbps          9.86 ms
 Los Angeles, US  96.97 Mbps        99.17 Mbps          144.32 ms
 Dallas, US       96.48 Mbps        99.39 Mbps          116.51 ms
 Montreal, CA     97.87 Mbps        98.11 Mbps          93.79 ms
 Amsterdam, NL    97.71 Mbps        97.38 Mbps          9.10 ms
 Shanghai, CN     99.10 Mbps        100.33 Mbps         185.14 ms
 Hongkong, CN     62.88 Mbps        102.96 Mbps         344.87 ms
 Mumbai, IN       96.35 Mbps        98.21 Mbps          278.14 ms
 Singapore, SG    72.67 Mbps        90.33 Mbps          248.36 ms
 Tokyo, JP        1.35 Mbps         100.88 Mbps         228.75 ms
----------------------------------------------------------------------
 Finished in        : 4 min 54 sec
 Timestamp          : 2024-04-16 19:39:05 CEST
----------------------------------------------------------------------

nench

Nench, while relatively minimalistic in its output, offers quick and straightforward performance assessment. It provides basic information about CPU, disk I/O, and network speed. The benchmarking process is initiated with a single command:

curl -s wget.racing/nench.sh | bash
-------------------------------------------------
 nench.sh v2019.07.20 -- https://git.io/nench.sh
 benchmark timestamp:    2024-04-16 16:59:14 UTC
-------------------------------------------------

Processor:    Intel Core Processor (Haswell, no TSX)
CPU cores:    1
Frequency:    2394.454 MHz
RAM:          1.9Gi
Swap:         -
Kernel:       Linux 6.5.0-27-generic x86_64

Disks:
loop0  152.1M  HDD
loop1   40.4M  HDD
loop2    104M  HDD
loop3   74.1M  HDD
loop4   74.2M  HDD
sda     20G  HDD

CPU: SHA256-hashing 500 MB
    4.608 seconds
CPU: bzip2-compressing 500 MB
    7.523 seconds
CPU: AES-encrypting 500 MB
    2.525 seconds

ioping: seek rate
    min/avg/max/mdev = 82.0 us / 187.5 us / 44.5 ms / 325.1 us
ioping: sequential read speed
    generated 17.6 k requests in 5.00 s, 4.29 GiB, 3.52 k iops, 879.3 MiB/s

dd: sequential write speed
    1st run:    520.71 MiB/s
    2nd run:    604.63 MiB/s
    3rd run:    560.76 MiB/s
    average:    562.03 MiB/s

IPv4 speedtests
    your IPv4:    xxx.xxx.xxx.xxx

    Cachefly CDN:         11.58 MiB/s
    Leaseweb (NL):        0.52 MiB/s
    Softlayer DAL (US):   0.00 MiB/s
    Online.net (FR):      11.61 MiB/s
    OVH BHS (CA):         9.81 MiB/s

IPv6 speedtests
    your IPv6:    xxxx:xxxx:xxxx:xxxx

    Leaseweb (NL):        0.55 MiB/s
    Softlayer DAL (US):   0.00 MiB/s
    Online.net (FR):      11.46 MiB/s
    OVH BHS (CA):         10.23 MiB/s
-------------------------------------------------

vpsbench

For those seeking a fast and efficient benchmarking solution, VPSBench stands out. This lightweight tool focuses on delivering essential performance metrics with minimal overhead. To conduct the benchmark, ensure the required dependencies are installed, then execute the following command:

sudo apt install -y time bzip2 && curl -sL https://raw.github.com/mgutz/vpsbench/master/vpsbench | bash
Redirecting output to ‘wget-log’.
Benching I/O ... OK
Benching CPU. Bzipping 25MB file ... OK
Benching inbound network. Downloading 100MB file ... OK
Share at https://github.com/mgutz/vpsbench/wiki/VPS-Hosts

_04/16/2024 - VMPLAN - DATACENTER - OS - AUTHOR_
CPU model:  Intel Core Processor (Haswell, no TSX)
Number of cores: 1
CPU frequency:  2394.454 MHz
Total amount of RAM: 1910 MB
Total amount of swap:  MB
System uptime:   6 days, 7:57,
I/O speed:  570 MB/s
Bzip 25MB: 6.26s
Download 100MB file: 493KB/s

LemonBench

LemonBench, originating from Chinese developers, offers a unique perspective on Linux system benchmarking. While its primary focus is on assessing system performance, LemonBench also includes tests related to network latency and routing, particularly targeting Chinese servers. To run the benchmark, execute the following command:

curl -fsL https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast
 LemonBench v3.0 Linux Benchmark & Evaluation Utility Codename "Stardust". (C) iLemonrain, All Rights Reserved.

 -> System Information

 CPU Model Name:		Intel Core Processor (Haswell, no TSX)
 CPU Cache Size:		L1: 32.00 KB / L2: 4.00 MB / L3: 16.00 MB
 CPU Specifications:		1 vCPU
 Virtualization Ready:		Yes (Based on Intel VT-x, Nested Virtualization Enabled)
 Virtualization Type:		KVM
 Memory Usage:			1022.93 MiB / 1.87 GiB
 Swap Usage:			[ no swap partition or swap file detected ]
 Disk Usage:			11.27 GiB / 19.21 GiB
 Boot Disk:			/dev/sda1
 OS Release:			Ubuntu 23.10 (x86_64)
 Kernel Version:		6.5.0-27-generic

 -> Network Information

 IPv4-IP Address:		[DE] xxx.xxx.xxx.xxx
 IPv4-AS Information:		AS16276 - OVH SAS
 IPv4-GeoIP Location:		Germany Hesse Limburg an der Lahn
 IPv6-IP Address:		[DE] xxxx:xxxx:xxxx:xxxx::xxxx
 IPv6-AS Information:		AS16276 - OVH SAS
 IPv6-GeoIP Location:		Germany Hesse Frankfurt am Main

 -> Streaming Service Unlock Test

 Netflix:			FAIL (Unexpected Result)
 HBO Now:			Yes
 Youtube Premium:		Yes (GeoIP: DE)
 Tiktok Region:			No
 BBC iPlayer:			Yes
 NicoNico:			No
 Princonne Re:dive Japan:	FAIL (Network Connection Error)
 Pretty Derby Japan:		FAIL (Unexpected Result)
 Kantai Collection Japan:	No
 Bahamut Anime:			No
 Bilibili (China Mainland):	No
 Bilibili (China SAR&Taiwan):	No
 Bilibili (China Taiwan):	No
 Steam Price Currency:		EUR

  -> CPU Performance Test (Fast mode, 1-Pass @ 5sec)

 1 Thread(s) Test:		662.71 Scores (1.00x)

 -> Disk Performance Test (Using FIO, Direct mode, 32 IO-Depth)

 Write Test (4K-Block):		16.04 MB/s (4106 IOPS)
 Read  Test (4K-Block):		24.58 MB/s (6293 IOPS)
 Write Test (128K-Block):	900.90 MB/s (7207 IOPS)
 Read  Test (128K-Block):	2941.18 MB/s (23529 IOPS)

 -> Network Speedtest Test (Using Ookla Speedtest, Fast Test Mode)

 Node Name			Download Speed	Upload Speed	Ping Latency	Server Name
 Speedtest Default:		59.78 Mbps	72.85 Mbps	9.70 ms	bVPN.eu, France Gravelines
 China Unicom Shanghai:		95.70 Mbps	92.94 Mbps	185.26 ms	China Unicom 5G, China Shanghai
 China Telecom Shanghai:	FAIL: 
 China Mobile Sichuan:		FAIL: 

 -> Traceroute Test (Fast Mode)

..

Generated by LemonBench v3 on 2024-04-16T16:52:46Z Version 2023.06.22-Stable