如您需要技术咨询、解决方案定制、故障排除、运维监控等服务,可联系ericwcn#at#163.com。

百度云服务器BCE性能测试

云计算 立杰 687℃ 0评论

百度开放云服务器BCE目前已经开放公测和销售。作者第一时间购买并进行了测试。默认没有实名认证的用户是无法开通带宽和外网访问权限的。
BCE:1核 1G 1M
下文为UnixBench跑分:

          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   12:28:13 up 13:39,  1 user,  load average: 0.03, 0.03, 0.00; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Wed Aug 05 2015 12:28:13 - 12:56:08
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       23082221.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2514.5 MWIPS (9.9 s, 7 samples)
Execl Throughput                               3548.0 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        756837.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          211567.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1635667.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1453397.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 267094.8 lps   (10.0 s, 7 samples)
Process Creation                              11236.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4033.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    542.2 lpm   (60.0 s, 2 samples)
System Call Overhead                        1691213.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   23082221.8   1977.9
Double-Precision Whetstone                       55.0       2514.5    457.2
Execl Throughput                                 43.0       3548.0    825.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     756837.6   1911.2
File Copy 256 bufsize 500 maxblocks            1655.0     211567.5   1278.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    1635667.2   2820.1
Pipe Throughput                               12440.0    1453397.5   1168.3
Pipe-based Context Switching                   4000.0     267094.8    667.7
Process Creation                                126.0      11236.9    891.8
Shell Scripts (1 concurrent)                     42.4       4033.8    951.4
Shell Scripts (8 concurrent)                      6.0        542.2    903.7
System Call Overhead                          15000.0    1691213.4   1127.5
                                                                   ========
System Benchmarks Index Score                                        1109.2

网速的测试,本市机房内部下载速度很快,上传并未达到1Mbps。

[root@instance-gy62tn0n ~]# speedtest
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Beijing Baidu Netcom Science and (180.76.141.6)...
Selecting best server based on latency...
Hosted by Beijing Telecom (Beijing) [1.69 km]: 5.161 ms
Testing download speed........................................
Download: 60.42 Mbit/s
Testing upload speed..................................................
Upload: 0.53 Mbit/s

与阿里云节点下载速度:

[root@instance-gy62tn0n ~]# wget http://mirrors.aliyun.com/ubuntu-releases/14.04/ubuntu-14.04.2-desktop-i386.iso
--2015-08-05 14:43:23--  http://mirrors.aliyun.com/ubuntu-releases/14.04/ubuntu-14.04.2-desktop-i386.iso
Resolving mirrors.aliyun.com... 115.28.122.210, 112.124.140.210
Connecting to mirrors.aliyun.com|115.28.122.210|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1051721728 (1003M) [application/octet-stream]
Saving to: “ubuntu-14.04.2-desktop-i386.iso”

40% [===============>                          ] 423,425,374 5.00M/s  eta 2m 2s

与163节点下载速度:

[root@instance-gy62tn0n ~]# wget http://mirrors.163.com/ubuntu-releases/14.04/ubuntu-14.04.2-desktop-amd64.iso
--2015-08-05 14:44:52--  http://mirrors.163.com/ubuntu-releases/14.04/ubuntu-14.04.2-desktop-amd64.iso
Resolving mirrors.163.com... 123.58.173.185, 123.58.173.186
Connecting to mirrors.163.com|123.58.173.185|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1044381696 (996M) [application/octet-stream]
Saving to: “ubuntu-14.04.2-desktop-amd64.iso”

100%[=======================================>] 1,044,381,696 12.3M/s   in 2m 0s   

2015-08-05 14:46:52 (8.27 MB/s) - “ubuntu-14.04.2-desktop-amd64.iso” saved [1044381696/1044381696]

磁盘IO hdparm 测试:

[root@instance-gy62tn0n ~]# hdparm -Tt /dev/vda

/dev/vda:
 Timing cached reads:   12540 MB in  2.00 seconds = 6278.10 MB/sec
 Timing buffered disk reads: 1108 MB in  3.00 seconds = 369.16 MB/sec

磁盘IO DD命令 测试:

#a.测试磁盘的IO写速度
[root@instance-gy62tn0n ~]# time dd if=/dev/zero of=test.dbf bs=8k count=300000
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 3.50201 s, 702 MB/s

real	0m3.504s
user	0m0.058s
sys	0m2.509s
[root@instance-gy62tn0n ~]# time dd if=/dev/zero of=test2.dbf bs=8k count=300000
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 3.58087 s, 686 MB/s

real	0m3.583s
user	0m0.074s
sys	0m2.292s
#b.测试磁盘的IO读速度
[root@instance-gy62tn0n ~]# dd if=test.dbf bs=8k count=300000 of=/dev/null 
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 6.24629 s, 393 MB/s
[root@instance-gy62tn0n ~]# dd if=test2.dbf bs=8k count=300000 of=/dev/null 
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 5.97711 s, 411 MB/s

2.数据对比

2.1 Amazon EC2 1核 960MB

磁盘IO hdparm 测试:

root@ip-172-31-22-230:~# hdparm -Tt /dev/xvda

/dev/xvda:
 Timing cached reads:   22916 MB in  2.00 seconds = 11470.48 MB/sec
 Timing buffered disk reads: 244 MB in  3.00 seconds =  81.26 MB/sec

磁盘IO DD命令 测试:

#a.测试磁盘的IO写速度
root@ip-172-31-22-230:~#time dd if=/dev/zero of=test.dbf bs=8k count=300000
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 35.15 s, 69.9 MB/s

real    0m35.151s
user    0m0.032s
sys     0m1.633s
#b.测试磁盘的IO读速度
root@ip-172-31-22-230:~# dd if=test.dbf bs=8k count=300000 of=/dev/null
300000+0 records in
300000+0 records out
2457600000 bytes (2.5 GB) copied, 37.407 s, 65.7 MB/s

转载请注明:知识库 » 百度云服务器BCE性能测试

喜欢 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址