This topic describes the differences between ApsaraDB for Memcache and self-managed Memcached.
Performance comparison
Self-managed Memcached: The CPU of the server uses the Intel Xeon E5-2630 processor and contains eight cores. The memory capacity of the server is 32 GB. The OS is 64-bit CentOS 5.8. The cache capacity of the self-managed Memcached instance is 20 GB.
ApsaraDB for Memcache: You purchase an ApsaraDB for Memcache instance with 20 GB of memory on Alibaba Cloud.
Test scenarios
Test scenario 1: When a single client is connected to self-managed Memcached or ApsaraDB for Memcache, perform read and write operations on self-managed Memcached and ApsaraDB for Memcache each time the volume of value data is 1 KB, 10 KB, 100 KB, and 800 KB, and then compare their average response time.
When the SET operation is repeatedly performed 100,000 times, the average response time (ms) of self-managed Memcached is compared with the average response time (ms) of ApsaraDB for Memcache. The following table describes the comparison results.
Value 1K | Value 10K | Value 100K | Value 800K | |
---|---|---|---|---|
Memcached | 0.52 | 1.1 | 4.8 | 37 |
ApsaraDB for Memcache | 0.61 | 1.33 | 5.2 | 37 |
When the GET operation is repeatedly performed 100,000 times, the average response time (ms) of self-managed Memcached is compared with the average response time (ms) of ApsaraDB for Memcache. The following table describes the comparison results.
Value 1K | Value 10K | Value 100K | Value 800K | |
---|---|---|---|---|
Memcached | 0.46 | 0.78 | 1.55 | 8.47 |
ApsaraDB for Memcache | 0.56 | 1.09 | 1.58 | 9 |
Test scenario 2: When a large number of clients concurrently are connected to self-managed Memcached or ApsaraDB for Memcache, perform read and write operations on self-managed Memcached and ApsaraDB for Memcache each time the volume of data (value) is 1 KB, 10 KB, and 100 KB, and then compare their average response time.
Value 1K | Value 10K | Value 100K | |
---|---|---|---|
Memcached | 4.82 | 8.68 | 165 |
ApsaraDB for Memcache | 4.14 | 7.69 | 136 |
When the GET operation is repeatedly performed 1,000,000 times over 100 connections in a concurrent manner, the average response time (ms) of self-managed Memcached is compared with the average response time (ms) of ApsaraDB for Memcache. The following table describes the comparison results.
Value 1K | Value 10K | Value 100K | |
---|---|---|---|
Memcached | 4.58 | 8.19 | 124 |
ApsaraDB for Memcache | 3.59 | 7.24 | 103 |
Test conclusion: The following conclusion can be obtained based on the comparison of test results. If a single client is connected to ApsaraDB for Memcache or self-managed Memcached, the I/O performance of ApsaraDB for Memcache is lower than the I/O performance of self-managed Memcached. If a large number of clients are concurrently connected to ApsaraDB for Memcache or self-managed Memcached, the I/O performance of ApsaraDB for Memcache is higher than the I/O performance of self-managed Memcached.
If the issue persists, contact technical support.