2014年12月29日 3779点热度 0人点赞 1条评论
小岑手里有一个免费一年的AWS EC2 和一个廉价VPS VULTR,于是做了个简单的对比
对比型号
VULTR:
MEM:768M SSD:15G
AWS
MEM:1G
unixbench测试 SSD:10G
下面是unixbench5.13的对比数据
VULTR
------------------------------------------------------------------------
Benchmark Run: Mon Dec 29 2014 21:55:44 - 22:24:16
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 41356491.1 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4049.2 MWIPS (13.0 s, 7 samples)
Execl Throughput 5911.7 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1286933.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 392889.2 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2774735.1 KBps (30.0 s, 2 samples)
Pipe Throughput 3069565.9 lps (10.0 s, 7 samples)
Pipe-based Context Switching 465608.5 lps (10.0 s, 7 samples)
Process Creation 16334.9 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 10543.0 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1338.0 lpm (60.0 s, 2 samples)
System Call Overhead 5609901.1 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 41356491.1 3543.8
Double-Precision Whetstone 55.0 4049.2 736.2
Execl Throughput 43.0 5911.7 1374.8
File Copy 1024 bufsize 2000 maxblocks 3960.0 1286933.1 3249.8
File Copy 256 bufsize 500 maxblocks 1655.0 392889.2 2374.0
File Copy 4096 bufsize 8000 maxblocks 5800.0 2774735.1 4784.0
Pipe Throughput 12440.0 3069565.9 2467.5
Pipe-based Context Switching 4000.0 465608.5 1164.0
Process Creation 126.0 16334.9 1296.4
Shell Scripts (1 concurrent) 42.4 10543.0 2486.5
Shell Scripts (8 concurrent) 6.0 1338.0 2230.0
System Call Overhead 15000.0 5609901.1 3739.9
========
System Benchmarks Index Score 2158.4
======= Script description and score comparison completed! =======
AWS EC2
------------------------------------------------------------------------
Benchmark Run: Mon Dec 29 2014 21:55:58 - 22:24:02
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 32935481.1 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4192.1 MWIPS (9.8 s, 7 samples)
Execl Throughput 4776.1 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1218700.7 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 336910.1 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 3000748.2 KBps (30.0 s, 2 samples)
Pipe Throughput 2370286.3 lps (10.0 s, 7 samples)
Pipe-based Context Switching 348999.4 lps (10.0 s, 7 samples)
Process Creation 14330.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 8386.1 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1073.4 lpm (60.0 s, 2 samples)
System Call Overhead 4406123.8 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 32935481.1 2822.2
Double-Precision Whetstone 55.0 4192.1 762.2
Execl Throughput 43.0 4776.1 1110.7
File Copy 1024 bufsize 2000 maxblocks 3960.0 1218700.7 3077.5
File Copy 256 bufsize 500 maxblocks 1655.0 336910.1 2035.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 3000748.2 5173.7
Pipe Throughput 12440.0 2370286.3 1905.4
Pipe-based Context Switching 4000.0 348999.4 872.5
Process Creation 126.0 14330.4 1137.3
Shell Scripts (1 concurrent) 42.4 8386.1 1977.9
Shell Scripts (8 concurrent) 6.0 1073.4 1789.1
System Call Overhead 15000.0 4406123.8 2937.4
========
System Benchmarks Index Score 1841.6
======= Script description and score comparison completed! =======
VULTR的VPS的测试分数还是很给力的
下面是ping值的测试
VULTR
AWS EC2
两者都是NTT的线路到日本,通病就是不分地区联通比较高200-400ms之间,偶有线路不稳定的状况
下面是硬盘速度测试
VULTR
root@install:~/root# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
4096+0 records in
4096+0 records out
268435456 bytes (268 MB) copied, 3.10572 s, 86.4 MB/s
root@install:~/root# dd if=/dev/zero of=test bs=8k count=256k conv=fdatasync
262144+0 records in
262144+0 records out
2147483648 bytes (2.1 GB) copied, 4.70967 s, 456 MB/s
AWS EC2
root@ip-172-31-15-174:~# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
4096+0 records in
4096+0 records out
268435456 bytes (268 MB) copied, 17.318 s, 15.5 MB/s
root@ip-172-31-15-174:~# dd if=/dev/zero of=test bs=8k count=256k conv=fdatasync
262144+0 records in
262144+0 records out
2147483648 bytes (2.1 GB) copied, 40.0588 s, 53.6 MB/s
VULTR的硬盘速度还是很给力的!
好了简单的测试到这里。
来源:oschina
链接:https://my.oschina.net/u/4343506/blog/4754727