VPS (Virtual Private Server) is a service that provides a virtual server operating on a physical server. To ensure that your VPS works stably and efficiently, testing its performance and speed is very important. Here are some common methods to test VPS performance, CPU test and test VPS network speed Linux.
How to Test VPS Performance, CPU, and Hard Drive Speed on Linux/VPS
In this article, we will show you some simple ways to use the terminal to check/test parameters such as Internet speed, drive read and write speed, and to determine if the drive is SSD or HDD. We will also guide you through performance testing to provide a comprehensive overview of your VPS server configuration.
Linux/VPS hard drive speed test (test disk)
First, check the performance of the drive, log in to your VPS and use run the command below on the terminal .
curl -sL yabs.sh | bash -s -- -ig
Test VPS Performance results include information about CPU, memory, hard drive and network speed. You can use these numbers to gauge the performance of your VPS. Parameters are displayed for read and write speeds on drives with different block sizes. Commonly used Linux/VPS hard drive speed test block sizes are 4KB, 64KB, 512KB and 1MB.
In there:
- IOPS (Input/Output Operations Per Second): This is the number of reads/writes of data units (blocks) that the drive can process in one second. The higher the number of IOPS, the faster the drive is able to process data.
- MB/s (Megabytes per second): This is a unit of measurement for data transfer speed. It indicates the number of Megabytes of data read or written on the drive in one second. The higher the number of MB/s, the faster the data transfer speed.
Test VPS network speed Linux/Ubuntu (Upload/Download)
curl -sL yabs.sh | bash -s -- -fgr
After the execution is complete, you will see the results of the VPS’s network speed test. Test performance VPS results include information about upload speed and download speed. The unit used is usually Megabits per second (Mbps) or Megabytes per second (MB/s).
In there:
- Provider: The name of the network service provider.
- Location (Link): The location and link of the server.
- Send Speed: The speed of sending data from your VPS to the server.
- Recv Speed: The speed of getting data from the server to your VPS.
- Ping: Latency in communication between your VPS and the server.
This helps you gauge the network connection speed between your VPS and servers from different service providers in different locations through the test VPS network speed. Important factors that you can judge from the results include:
- Send and Receive Speed (Send Speed and Recv Speed): This is the speed of data transfer between VPS and servers. It indicates the ability to transmit data between two points in the network.
- Latency (Ping): This is the time that the packet is lost and returned between the VPS and the server. Lower latency indicates a fast network connection and responsiveness.
Through the Linux VPS network speed test parameters like screenshots, you can compare the network speed between different service providers and locations. This can be useful when you need to choose a new network service provider or when you are testing the networking performance of your current VPS.
Test CPU performance on VPS
To test CPU performance on VPS, you can use curl command to perform the same test as previous 2 ways. Here’s how to perform a CPU performance test using the curl command:
curl -sL yabs.sh | bash -s -- -fi
Once the execution is complete, you will see the test performance VPS results of the CPU. The results include information about the single core performance and multi-core performance of the CPU. You can use these numbers to gauge CPU performance on a VPS.
These are the results from a CPU performance test using the Geekbench 6 tool. The “Single Core” and “Multi Core” values represent CPU performance in single and multi-threaded scenarios.
In there:
- Single Core: the number 962 is the CPU’s performance score in tasks that use a single CPU core. The 962 score doesn’t have a specific unit, but it represents the relative performance of the CPU in single tasks. The higher the score, the stronger the single-core performance of the CPU.
- Multi Core: Score CPU performance in tasks that use multiple CPU cores. A higher score represents better multi-core performance, with better parallelism.
Test the speed of the transmission line to your location.
curl -Lso- tocdo.net | bash
dd Test: VPS/Linux network speed test results are performed using the dd tool to measure the read and write speeds of the drive. Each run is shown the I/O speed results and then averaged to give the average I/O speed. The VPS performance test results show an average speed of 861.3 MB/s.
Fio Test: This section uses the Fio tool to measure the read and write speed of the drive. Results display read speed, number of reads per second (IOPS) and write speed, number of writes per second (IOPS). Your results show a read speed of 155 MB/s, a read IOPS of 37.8k, a write speed of 51.7 MB/s, and a write IOPS of 12.6k.
When testing the speed of Linux/VPS hard drives, with ordinary hard drives, the average write and read speed of HDD usually ranges from about 100 MB/s to 200 MB/s. However, there may be high-end HDD drives or 10,000 RPM (revolutions per minute) drives that can achieve higher speeds, between 200 MB/s and 250 MB/s. So with the above results we see that the dd test fluctuates around 861 MB/s ie the SSD drive. Of course, the higher the score, the stronger the speed and performance of your VPS.