edit-icon download-icon

Performance comparison between ApsaraDB for Memcache and locally-deployed Memcached

Last Updated: Dec 21, 2017

Locally-deployed Memcached

Server: E5-2630 8-core CPU, 32 GB memory, CentOS 5.8 64-bit operating system; locally-deployed Memcached with a cache capacity of 20 GB.

ApsaraDB for Memcache

Purchase 20 GB of services from Alibaba Cloud.

Test scenario 1: In the event of single-connection, use data with value sizes of 1 KB, 10 KB, 100 KB and 800 KB to perform read/write operations on locally-deployed Memcached and ApsaraDB for Memcache separately, and compare the average response time of Memcached and ApsaraDB for Memcache.

Perform the set operation 100,000 consecutive times. Comparison of the average response time (in millisecond) of test objects A and B is as follows:

- 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

Perform the get operation 100,000 consecutive times. Comparison of the average response time (in millisecond) of test objects A and B is as follows:

- 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: In the event of multi-connection, use data with value sizes of 1 KB, 10 KB, 100 KB and 800 KB to perform read/write operations on locally-deployed Memcached and ApsaraDB for Memcache separately, and compare the average response time of Memcached and ApsaraDB for Memcache.

- Value 1K Value 10K Value 100K
Memcached 4.82 8.68 165
ApsaraDB for Memcache 4.14 7.69 136

Perform 100 get operations concurrently 1,000,000 consecutive times. Comparison of the average response time (in millisecond) of test objects A and B is as follows:

- Value 1K Value 10K Value 100K
Memcached 4.58 8.19 124
ApsaraDB for Memcache 3.59 7.24 103

Test conclusion: From the preceding test results, in the event of single-connection, the I/O performance of ApsaraDB for Memcache is slightly lower than the locally-deployed Memcached; in the event of multi-connection, the I/O performance of ApsaraDB for Memcache is higher than the locally-deployed Memcached.

Thank you! We've received your feedback.