SaltStack常用组件使用 SaltStack配置文件说明 轻量级DNS、DHCP服务软件DNSMASQ 千万级PV(日)的移动应用架构如何实现 高效运维最佳实践-运维自动化之殇 Ubuntu 14.04 Linux如何配置静态IP地址和DNS服务器 ELK 常见错误与解决办法 Elasticsearch 集群配置管理常用操作 常用数字证书格式相互转换-OpenSSL/Keytool/Jks2pfx ELK 综合日志归档分析系统(2)-Logstash安装配置 Elasticsearch之Shield认证与权限管理 ELK 综合日志归档分析系统(1)-Elasticsearch-Redis安装配置 Redmine 3.2 安装配置指南 CentOS6 大型web系统数据缓存设计 Redis 集群方案 Linux 内核TCP优化详解 SaltStack初始化安装配置 OpenLDAP常用操作 OpenLDAP统一身份认证 [CentOS6/7] 构建Linux Skype Message消息推送API服务(Zabbix集成告警) Tomcat 生产服务器性能优化 Zabbix结合iptables监控网络流量 Linux操作系统环境配置与优先级问题 深入 NGINX: 我们如何设计性能和扩展 Windows SQL Server 性能计数器详细说明 Windows性能计数器说明 Ubuntu安装openntpd报错:Starting openntpd: /etc/openntpd/ntpd.conf: Permission denied locale: Cannot set LC_ALL to default locale: No such file or directory OpenSSL拆解p12证书公约和私钥 Linux sar 统计系统性能(网卡、内存和交换空间、CPU资源等) Linux Shell /dev/null 2>&1 含义 Windows 2003操作系统网络不通 构建私有yum安装源镜像站点(openstack) CentOS6/RedHat6新增网卡识别问题 Ubuntu 14.04 Server优化与使用问题解决 Redhat/CentOS6系统使用ntfs-3g挂载NTFS分区 Linux GPT挂载超过2TB磁盘 Linux系统性能优化、测试和监控工具梳理 修复WIN2003远程桌面服务无法访问 解决CentOS“Zabbix discoverer processes 75% busy”的问题 REHL/CentOS安装phpMyadmin

百度云服务器BCE性能测试

2015年08月05日

百度开放云服务器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性能测试