DigitalOcean vs EC2

I was preparing to go live with one of our clients before launch, ran some benchmarks on the servers. The production instance is an EC2 m1.small while another development instance being used was the smallest DigitalOcean droplet $5/mo

I was running apachebench to test out how the server was performing under load and found out that the DO droplet was way faster than AWS instance. Later, I ran UnixBench on both the systems.

Here are the results:

EC2 m1.small

Benchmark Run: Wed Jan 22 2014 19:15:55 - 19:44:01
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        9584089.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1117.2 MWIPS (9.9 s, 7 samples)
Execl Throughput                                432.4 lps   (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        103181.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           27474.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        303728.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              145289.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  26970.8 lps   (10.0 s, 7 samples)
Process Creation                                940.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                    995.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    129.9 lpm   (60.3 s, 2 samples)
System Call Overhead                         150978.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    9584089.0    821.3
Double-Precision Whetstone                       55.0       1117.2    203.1
Execl Throughput                                 43.0        432.4    100.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     103181.2    260.6
File Copy 256 bufsize 500 maxblocks            1655.0      27474.9    166.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     303728.0    523.7
Pipe Throughput                               12440.0     145289.6    116.8
Pipe-based Context Switching                   4000.0      26970.8     67.4
Process Creation                                126.0        940.6     74.7
Shell Scripts (1 concurrent)                     42.4        995.7    234.8
Shell Scripts (8 concurrent)                      6.0        129.9    216.5
System Call Overhead                          15000.0     150978.4    100.7
                                                                   ========
System Benchmarks Index Score                                         179.8

DO Droplet

Benchmark Run: Wed Jan 22 2014 13:41:46 - 14:09:55
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       28134626.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3205.7 MWIPS (9.9 s, 7 samples)
Execl Throughput                               3207.7 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        891959.7 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          255754.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1715341.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1649554.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 229391.0 lps   (10.0 s, 7 samples)
Process Creation                               8814.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5890.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    790.0 lpm   (60.1 s, 2 samples)
System Call Overhead                        3517814.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   28134626.0   2410.9
Double-Precision Whetstone                       55.0       3205.7    582.9
Execl Throughput                                 43.0       3207.7    746.0
File Copy 1024 bufsize 2000 maxblocks          3960.0     891959.7   2252.4
File Copy 256 bufsize 500 maxblocks            1655.0     255754.5   1545.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    1715341.8   2957.5
Pipe Throughput                               12440.0    1649554.5   1326.0
Pipe-based Context Switching                   4000.0     229391.0    573.5
Process Creation                                126.0       8814.9    699.6
Shell Scripts (1 concurrent)                     42.4       5890.4   1389.3
Shell Scripts (8 concurrent)                      6.0        790.0   1316.7
System Call Overhead                          15000.0    3517814.6   2345.2
                                                                   ========
System Benchmarks Index Score                                        1306.0

Further readings

  1. EC2 is basically one big ripoff
  2. Bencmarking Amazon EC2: The wacky world of cloud performance
  3. Top 5 AWS EC2 Performance Problems