Quick Redis Benchmark: AWS vs. Azure

Bryan Helmig
Bryan Helmig
June 8, 2013

Do not consider this a complete benchmark, this is just a quick comparison I ran in 5 or so spare minutes on a Saturday. Comparing m1.medium on AWS to Medium on Azure, I selected the Ubuntu 12.04 LTS disk image, ran these commands:

$ sudo add-apt-repository ppa:rwky/redis
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install redis-server

Which automatically started the redis server in the background, running a quick benchmark gave us:

AWS

  • m1.medium type
  • 1 vCPU, 2 ECU
  • 3.75gb RAM
  • $0.12/hr on demand
  • $0.028/hr reserved one year
$ redis-benchmark -q -n 100000

PING_INLINE: 19312.48 requests per second
PING_BULK: 19260.40 requests per second
SET: 19569.47 requests per second
GET: 19297.57 requests per second
INCR: 19758.94 requests per second
LPUSH: 19758.94 requests per second
LPOP: 19561.81 requests per second
SADD: 19607.84 requests per second
SPOP: 19338.62 requests per second
LPUSH (needed to benchmark LRANGE): 19708.32 requests per second
LRANGE_100 (first 100 elements): 11592.86 requests per second
LRANGE_300 (first 300 elements): 6186.59 requests per second
LRANGE_500 (first 450 elements): 4561.42 requests per second
LRANGE_600 (first 600 elements): 3720.93 requests per second
MSET (10 keys): 19944.16 requests per second

Azure

  • Medium type
  • 2 core
  • 3.5gb RAM
  • $0.12/hr on demand
  • $0.08/hr reserved one year
$ redis-benchmark -q -n 100000

PING_INLINE: 60096.15 requests per second
PING_BULK: 59136.61 requests per second
SET: 61387.36 requests per second
GET: 60827.25 requests per second
INCR: 60975.61 requests per second
LPUSH: 61387.36 requests per second
LPOP: 61050.06 requests per second
SADD: 61842.92 requests per second
SPOP: 61842.92 requests per second
LPUSH (needed to benchmark LRANGE): 61919.50 requests per second
LRANGE_100 (first 100 elements): 30220.61 requests per second
LRANGE_300 (first 300 elements): 12103.61 requests per second
LRANGE_500 (first 450 elements): 8563.84 requests per second
LRANGE_600 (first 600 elements): 6801.80 requests per second
MSET (10 keys): 42900.04 requests per second

Conclusion

While not an exact 1-1 comparison, based on the roughly equivalent instance type Microsoft is positioning: Azure is about 2.5-3x as fast, and a great deal if you prefer on-demand. Once you start reserving instances, Azure gets a little more expensive (about 2.5x).

About the Author

Bryan Helmig is a co-founder and developer at Zapier, self-taught hacker, jazz/blues musician and fine beer and whiskey lover.

Get productivity tips in your inbox  

Learn about workflow, company building, and how to get things done.

comments powered by Disqus