2014年12月29日 3779點熱度 0人點贊 1條評論async
小岑手裏有一個免費一年的AWS EC2 和一個廉價VPS VULTR,因而作了個簡單的對比ide
對比型號測試
VULTR:spa
MEM:768M SSD:15Gunix
AWSblog
MEM:1Gip
unixbench測試 SSD:10Gci
下面是unixbench5.13的對比數據get
VULTRit
------------------------------------------------------------------------
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的硬盤速度仍是很給力的!
好了簡單的測試到這裏。