Mongo Vs Redis, the Increment Battle

I was having a friendly dispute with a co-worker the other day, we were talking about what technology to use to count the number of impressions viewed in a certain time period.  I was of the opinion that MongoDB could handle the load just fine, and he was of the mind that Redis was the solution to go with.  I decided to put it to the test and here are my results.

I wrote the following quick ruby class and ran it on my MacBook Pro:

here are the results:

REDIS: 10723.352221581272 increments per second
MONGO: 14809.955155994303 increments per second

WOW, MongoDB is almost a full 40% faster at incrementing than Redis.  I’m curious to hear of other people’s results, @devdazed



  1. wenziwenzi reblogged this from devdazed
  2. pierskarsenbarg reblogged this from devdazed
  3. devdazed posted this