之前的unixbench 4已经不能用了,wht前些日子推出了unixbench5.1.2性能测试脚本,但是默认的centos执行他总有各种小错误。于是特别做了一个脚本,把容易出错的地方fix了,给大家测试一下,如果有报错,请贴出错误,继续完善此脚本:
ssh登录linux vps控制台,运行下面的1行命令即可(centos版):- wget http://www.CTOHome.com/linux-vps-pack/unixbench.sh;sh ./unixbench.sh;
复制代码 此脚本会自动下载unixbench测试工具,并自动运行它。 根据机器性能,测试执行完大约需要5-30分钟
Please also note that this 5.1.2 version will make two runs. One run will test only 1 core (1 parallel copy). Another run will test all the available cores (e.g., 16 parallel copies for 8 CPUs with HT).
此版本可以测试CPU单核心和多核心的不同结果
下面的结果是1G内存,P4 2.8,单核,独立服务器结果453分,各位测试一下你的vps,估计性能不会比这个独立服务器差:- ========================================================================
- BYTE UNIX Benchmarks (Version 5.1.2)
- OS: GNU/Linux -- 2.6.18-164.11.1.el5 -- #1 SMP Wed Jan 20 07:39:04 EST 2010
- Machine: i686 (i386)
- Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
- CPU 0: Intel(R) Pentium(R) 4 CPU 2.80GHz (5586.7 bogomips)
- Hyper-Threading, MMX, Physical Address Ext
- 11:44:15 up 32 days, 6:13, 1 user, load average: 0.08, 0.05, 0.01; runlevel 3
- ------------------------------------------------------------------------
- Benchmark Run: Thu Apr 01 2010 11:44:15 - 12:12:21
- 1 CPU in system; running 1 parallel copy of tests
- Dhrystone 2 using register variables 4333007.6 lps (10.0 s, 7 samples)
- Double-Precision Whetstone 1106.9 MWIPS (10.5 s, 7 samples)
- Execl Throughput 2464.0 lps (29.5 s, 2 samples)
- File Copy 1024 bufsize 2000 maxblocks 242615.8 KBps (30.0 s, 2 samples)
- File Copy 256 bufsize 500 maxblocks 73897.0 KBps (30.0 s, 2 samples)
- File Copy 4096 bufsize 8000 maxblocks 488969.8 KBps (30.0 s, 2 samples)
- Pipe Throughput 366866.1 lps (10.0 s, 7 samples)
- Pipe-based Context Switching 123646.7 lps (10.0 s, 7 samples)
- Process Creation 9256.3 lps (30.0 s, 2 samples)
- Shell Scripts (1 concurrent) 2819.6 lpm (60.0 s, 2 samples)
- Shell Scripts (8 concurrent) 385.4 lpm (60.2 s, 2 samples)
- System Call Overhead 403840.8 lps (10.0 s, 7 samples)
- System Benchmarks Index Values BASELINE RESULT INDEX
- Dhrystone 2 using register variables 116700.0 4333007.6 371.3
- Double-Precision Whetstone 55.0 1106.9 201.3
- Execl Throughput 43.0 2464.0 573.0
- File Copy 1024 bufsize 2000 maxblocks 3960.0 242615.8 612.7
- File Copy 256 bufsize 500 maxblocks 1655.0 73897.0 446.5
- File Copy 4096 bufsize 8000 maxblocks 5800.0 488969.8 843.1
- Pipe Throughput 12440.0 366866.1 294.9
- Pipe-based Context Switching 4000.0 123646.7 309.1
- Process Creation 126.0 9256.3 734.6
- Shell Scripts (1 concurrent) 42.4 2819.6 665.0
- Shell Scripts (8 concurrent) 6.0 385.4 642.4
- System Call Overhead 15000.0 403840.8 269.2
- ========
- System Benchmarks Index Score 453.7
复制代码 下面的结果是768M内存,Xeon(R) CPU E5520 @ 2.27GHz, 但核心, openvz VPS结果,各位测试一下你的xen vps,对比一下:- ========================================================================
- BYTE UNIX Benchmarks (Version 5.1.2)
- OS: GNU/Linux -- 2.6.18-164.11.1.el5.028stab068.5 -- #1 SMP Mon Mar 15 19:26:36 MSK 2010
- Machine: i686 (i386)
- Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
- CPU 0: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz (4533.6 bogomips)
- Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
- 11:56:17 up 18:33, 1 user, load average: 0.79, 0.25, 0.08; runlevel 3
- ------------------------------------------------------------------------
- Benchmark Run: Thu Apr 01 2010 11:56:17 - 12:55:27
- 1 CPU in system; running 1 parallel copy of tests
- Dhrystone 2 using register variables 9508912.5 lps (10.0 s, 7 samples)
- Double-Precision Whetstone 1984.0 MWIPS (9.6 s, 7 samples)
- Execl Throughput 3507.5 lps (29.5 s, 2 samples)
- File Copy 1024 bufsize 2000 maxblocks 404781.5 KBps (30.0 s, 2 samples)
- File Copy 256 bufsize 500 maxblocks 122954.5 KBps (30.0 s, 2 samples)
- File Copy 4096 bufsize 8000 maxblocks 569243.2 KBps (30.1 s, 2 samples)
- Pipe Throughput 892678.4 lps (10.0 s, 7 samples)
- Pipe-based Context Switching 250202.8 lps (10.0 s, 7 samples)
- Process Creation 11860.2 lps (30.0 s, 2 samples)
- Shell Scripts (1 concurrent) 3343.4 lpm (60.0 s, 2 samples)
- Shell Scripts (8 concurrent) 493.8 lpm (60.0 s, 2 samples)
- System Call Overhead 769732.0 lps (10.0 s, 7 samples)
- System Benchmarks Index Values BASELINE RESULT INDEX
- Dhrystone 2 using register variables 116700.0 9508912.5 814.8
- Double-Precision Whetstone 55.0 1984.0 360.7
- Execl Throughput 43.0 3507.5 815.7
- File Copy 1024 bufsize 2000 maxblocks 3960.0 404781.5 1022.2
- File Copy 256 bufsize 500 maxblocks 1655.0 122954.5 742.9
- File Copy 4096 bufsize 8000 maxblocks 5800.0 569243.2 981.5
- Pipe Throughput 12440.0 892678.4 717.6
- Pipe-based Context Switching 4000.0 250202.8 625.5
- Process Creation 126.0 11860.2 941.3
- Shell Scripts (1 concurrent) 42.4 3343.4 788.5
- Shell Scripts (8 concurrent) 6.0 493.8 822.9
- System Call Overhead 15000.0 769732.0 513.2
- ========
- System Benchmarks Index Score 735.7
复制代码 vps测试执行了1个小时,但是居然比独立服务器分数高得多, 这不是误导么
[ 本帖最后由 美国VPS 于 2010-4-1 13:08 编辑 ] |