Intensive write: Mysql vs Redis

By | February 13, 2016
Share the joy
  •  
  •  
  •  
  •  
  •  
  •  

This isĀ another test on mysql and redis write speed. The test is easy. Keep updating a counter in mysql and redis for 10s. And see how many times it can update. Mysql uses InnoDB engine. Each update commits.

redis_mysql2

redis_mysql

Result shows that redis has better update performance. A redis server can handle up to 40K update per second.

Redis / Mysql stays in same machine with 2.9GHz CPU, 4GB memory.

You can find my testing code on github: link