Last update at :2024-05-08,Edit by888u
This article records the method of using UnixBench script to run scores on Linux VPS/server. UnixBench is an open source performance testing tool under Unix-like systems (Unix, BSD, Linux) and is widely used to test the performance of Linux system hosts. The main test items of Unixbench include: system calls, reading and writing, processes, graphical tests, 2D, 3D, pipelines, operations, C libraries and other system benchmark performance to provide test data.
1. UnixBench testing method
The following is the UnixBench test method (source).
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh chmod +x unixbench.sh ./unixbench.sh
After logging into the VPS, enter the above script and press Enter to start testing.
2. UnixBench test project
UnixBench mainly tests the following aspects:
- Dhrystone 2 using register variables
This item is used to test string handling. Because there are no floating point operations, it is popular among software and hardware design (hardware and software design), compilation and linker options (compiler and linker options), code optimization (code optimazaton), memory cache ( cache memory), wait states, and integer data types. - Double-Precision Whetstone
This one tests the speed and efficiency of floating point operations. This test consists of several modules, each of which includes a set of operations for scientific computing. A wide range of C functions: sin, cos, sqrt, exp, log are used for mathematical operations on integers and floating point numbers, array access, conditional branches, and program calls. This test tests both integer and floating point arithmetic operations. - Execl Throughput
This test examines the number of execl system calls that can be executed per second. The execl system call is a member of the exec family of functions. It is a front-end to the execve() function, along with several other similar commands. - File copy
Tests the rate at which data is transferred from one file to another. Each test uses a different size buffer. This test for file read, write, and copy operations counts the number of file read, write, and copy operations within a specified time (default is 10s). - Pipe Throughput
Pipes are the simplest way to communicate between processes. Pipe throughtput here refers to the number of times a process can write 512 bytes of data to a pipe and then read it back in one second. It should be noted that pipe throughput has no real counterpart in actual programming. - Pipe-based Context Switching
This tests the number of times (per second) two processes exchange a growing integer through a pipe. This is very similar to some applications in real programming. This test program first creates a child process, and then performs two-way pipe transmission with this child process. - Process Creation
Test the number of times a process can create a child process and then take it back per second (the child process must exit immediately). The focus of process creation is the creation and memory allocation of the new process process control block (process control block), that is, a sharp focus on memory bandwidth. Generally, this test is used to compare different implementations of this system call created by an operating system process. - System Call Overhead
The cost of testing entering and leaving the operating system kernel is the cost of a system call. It does this using a small program that calls the getpid function repeatedly. - Shell Scripts
Tests the number of times a process can concurrently start n copies of a shell script within one second. n generally takes the value 1, 2, 4, or 8. (I took 1, 8 when testing). This script performs a series of transformation operations on a data file.
3. UnixBench test results
The following are the test results. The time required for the test depends on the performance of the VPS or server. It usually takes dozens of minutes or even hours.
Recommended site search: vps server rental, permanent free foreign accelerator, US asp space, registered domain name dynamic ip server, foreign free all-round space, overseas server, high-defense server rental qy, network server rental, Korean server rental,
发表评论