Last update at :2024-05-19,Edit by888u
UnixBench is a performance testing tool under Unix-like systems (Unix, BSD, Linux). It is an open source tool 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.
The latest version of UnixBench5.1.3 includes system and graphics tests. If you need to test graphics, you need to modify the Makefile and do not comment out "GRAPHIC_TESTS = defined". At the same time, the system needs to provide the x11perf command gl_glibs library. The following script is tested using the latest version of UnixBench5.1.3, with annotated test items about graphics (most VPSs do not have graphics cards or integrated graphics, so graphics performance does not need to be tested). After running for 10-30 minutes (depending on the CPU core Quantity, operation time varies) to get a score, the higher the better.
Script official website: https://teddysun.com/245.html
Test method:
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh chmod +x unixbench.sh ./unixbench.shTest items: 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.
All results:UnixBench
Recommended site searches: US host rental, how much does it cost to rent a server for a year, Korean independent server, Qingdao ip agent, free cn domain name registration, domain name query, registered domain name query, Guangdong website registration, mainland China permanent registration-free cloud server Recommended, registered domain names,
发表评论