Redis performance?

แน่ๆ ก็ต่างกับที่ 2-core กับ 4-core ส่วนมี MONITOR ด้วยมั้ย ก็ไม่แน่ใจเท่าไหร่ ทดสอบจาก

redis-benchmark -c 10 -n 100000 -q 

10 parallel connection จำนวน แสน ครั้ง

Google Compute Engine

2-core / 3.75GB RAM ($50/mo)

สามโมงวันเครื่องตายแล้วตายอีก

PING_INLINE: 2679.10 requests per second
PING_BULK: 16157.70 requests per second
SET: 26385.22 requests per second
GET: 28066.24 requests per second
INCR: 29429.08 requests per second
LPUSH: 34376.07 requests per second
LPOP: 34376.07 requests per second
SADD: 25214.32 requests per second
SPOP: 30740.85 requests per second
LPUSH (needed to benchmark LRANGE): 3693.04 requests per second
LRANGE_100 (first 100 elements): 24102.19 requests per second
LRANGE_300 (first 300 elements): 39432.18 requests per second
LRANGE_500 (first 450 elements): 29824.04 requests per second
LRANGE_600 (first 600 elements): 25119.32 requests per second
MSET (10 keys): 19837.33 requests per second

4-core / 3.75GB RAM ($90/mo)

ประมาณ 5 ทุ่ม มี MasterTech แน่ๆ 1 // ไม่มี UDP เข้ามา

PING_INLINE: 104166.67 requests per second
PING_BULK: 82236.84 requests per second
SET: 81433.22 requests per second
GET: 92165.90 requests per second
INCR: 98135.42 requests per second
LPUSH: 98716.68 requests per second
LPOP: 93984.96 requests per second
SADD: 99700.90 requests per second
SPOP: 103305.79 requests per second
LPUSH (needed to benchmark LRANGE): 101010.10 requests per second
LRANGE_100 (first 100 elements): 56433.41 requests per second
LRANGE_300 (first 300 elements): 14731.88 requests per second
LRANGE_500 (first 450 elements): 11130.90 requests per second
LRANGE_600 (first 600 elements): 9170.95 requests per second
MSET (10 keys): 68493.15 requests per second

Linode

4-core / 4GB RAM / SSD 96GB ($40/mo)

PING_INLINE: 101832.99 requests per second
PING_BULK: 99304.87 requests per second
SET: 102145.05 requests per second
GET: 103734.44 requests per second
INCR: 95057.03 requests per second
LPUSH: 97087.38 requests per second
LPOP: 100200.40 requests per second
SADD: 93808.63 requests per second
SPOP: 80256.82 requests per second
LPUSH (needed to benchmark LRANGE): 79491.26 requests per second
LRANGE_100 (first 100 elements): 45662.10 requests per second
LRANGE_300 (first 300 elements): 20333.47 requests per second
LRANGE_500 (first 450 elements): 15209.13 requests per second
LRANGE_600 (first 600 elements): 11494.25 requests per second
MSET (10 keys): 78926.60 requests per second

1-core / 1GB RAM / SSD ($10/mo)

PING_INLINE: 67204.30 requests per second
PING_BULK: 67704.80 requests per second
SET: 72463.77 requests per second
GET: 71428.57 requests per second
INCR: 70621.47 requests per second
LPUSH: 60532.69 requests per second
LPOP: 66889.63 requests per second
SADD: 75357.95 requests per second
SPOP: 70621.47 requests per second
LPUSH (needed to benchmark LRANGE): 73855.24 requests per second
LRANGE_100 (first 100 elements): 30321.41 requests per second
LRANGE_300 (first 300 elements): 13435.44 requests per second
LRANGE_500 (first 450 elements): 9360.67 requests per second
LRANGE_600 (first 600 elements): 7164.86 requests per second
MSET (10 keys): 48007.68 requests per second

MacBook – slow Intel M 8GB RAM

PING_INLINE: 49188.39 requests per second
PING_BULK: 49261.09 requests per second
SET: 47982.51
SET: 48426.15 requests per second
GET: 49043.65 requests per second
INCR: 48709.21 requests per second
LPUSH: 48851.98 requests per second
LPOP: 48146.37 requests per second
SADD: 46992.48 requests per second
SPOP: 49091.80 requests per second
LPUSH (needed to benchmark LRANGE): 48590.86 requests per second
LRANGE_100 (first 100 elements): 12131.51 requests per second
LRANGE_300 (first 300 elements): 6249.22 requests per second
LRANGE_500 (first 450 elements): 4376.94 requests per second
LRANGE_600 (first 600 elements): 3590.28 requests per second
MSET (10 keys): 28401.02 requests per second

Desktop Intel i5 16GB RAM

PING_INLINE: 114416.48 requests per second
PING_BULK: 114678.90 requests per second
SET: 112107.62 requests per second
GET: 112994.35 requests per second
INCR: 111111.12 requests per second
LPUSH: 111607.14 requests per second
RPUSH: 112866.82 requests per second
LPOP: 111234.70 requests per second
RPOP: 110987.79 requests per second
SADD: 113250.28 requests per second
SPOP: 113507.38 requests per second
LPUSH (needed to benchmark LRANGE): 113765.64 requests per second
LRANGE_100 (first 100 elements): 29069.77 requests per second
LRANGE_300 (first 300 elements): 11917.53 requests per second
LRANGE_500 (first 450 elements): 8297.38 requests per second
LRANGE_600 (first 600 elements): 6326.71 requests per second
MSET (10 keys): 81037.28 requests per second