UnixBench _ use UnixBench one-key script in Linux to test system performance

Source: Internet
Author: User
UnixBench is an open-source tool used to test the basic performance of unix systems. It is a common tool used to test VPS performance. unixBench will perform a series of tests, including the performance measurement of 2D and 3D graphics systems. The test result is not only the CPU, memory, or disk as the benchmark, but also depends on the hardware and operating system version, compiler.

UnixBench is a performance testing tool for unix-like systems (Unix, BSD, Linux). It is an open-source tool that is widely used to test the performance of linux system hosts. Unixbench's main testing projects include: System Call, read/write, process, graphical testing, 2D, 3D, pipeline, computation, C library, and other system benchmark performance to provide test data.

The latest version of UnixBench5.1.3 includes system and graphic tests. If you want to test graphic, You need to modify the Makefile. Do not comment out "GRAPHIC_TESTS = defined". At the same time, the system must provide x11perfCommandGl_glibs library.
The following script uses the latest version UnixBench5.1.3 for testing, and comments the test items about graphic (most VPS do not have a video card or set display, so there is no need to test image performance ), after running for 10-30 minutes (based on the number of CPU cores and computing time), the score is obtained. The higher the score, the better.

 

Test method:

The installation and usage are as follows:

wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gztar xzf unixbench-5.1.2.tar.gzcd unixbench-5.1.2

Modify the Makefile file and remove the image test (skip this step if you need to test)

vi Makefile

Find

GRAPHIC_TESTS = defined

Comment out and save this line.

Compile

make

Run

./Run

Wait for the result.

If the unixbench tool is installed, the following error occurs: the "HiRes. pm" component may be missing, or the program path may be incorrect. The solution is as follows: ". pm" is actually a Perl package. You only need to install the corresponding package.
yum install perl-Time-HiRes

If you do not annotate the image for testing, you generally need to install additional packages. The possible problems are as follows:

1. gcc or c ++ missing

yum install gcc gcc_c++

2. The error message is/src/ubgears. c: 48: 22: error: X11/Xlib. h: No such file or directory.

./src/ubgears.c:49:23: error: X11/Xutil.h: No such file or directory./src/ubgears.c:50:24: error: X11/keysym.h: No such file or directory./src/ubgears.c:51:19: error: GL/gl.h: No such file or directory./src/ubgears.c:52:20: error: GL/glx.h: No such file or directory

Use

yum install xorg-x11*

3. Error:/usr/bin/ld: cannot find-lXext

ln -s /usr/lib64/libXext.so.6.4.0 /usr/lib/libXext.so


 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.