Live data from Hacker News

Mongo Vs Redis, The Increment Battle

devdazed.com

11–20 of 27 posts

Re: Mongo Vs Redis, The Increment Battle

#11

Can you give the mongo and reddis version numbers? Just curious if you were using reddis 2.0 or possibly 2.2 ? Also what version of the reddis client were you using? There were some performance improvements recently. Edit: thanks for sharing your experience, even if your test wasn't done with the help of a nobel winning computer team, it can still be useful data.

To know the version may be interesting but not really useful, I bet that if you change Redis with a dummy TCP server that is only able to reply +OK, whatever it receives, you'll get the same numbers here.

Basically every kind of networked server with a simple request-response protocol, in a busy loop over loopback, will show performances between 10k and 20k requests per second, mostly up to the speed of the implementation of the client.

Re: Mongo Vs Redis, The Increment Battle

#12
post #4
post #2

I've no clue about MongoDB performances, and which of Redis and MongoDB is faster incrementing integers, but for sure this benchmark is completely useless, as it is actually measuring a mix of client library latency and round trip time, being it single threaded, making no assumptions about the durability requirements, and so forth. For sure it seems like that MongoDB client library you are using has a smaller latency…

I wouldn't say it's completely useless as it shows that Mongo is faster in a single threaded process, using the most popular ruby client of each system. If I were writing a high-concurrency multi-threaded system to handle millions of keys at a time, Ruby would not be my first choice by far.

Check this comment: http://news.ycombinator.com/item?id=2103945

it could even be a dummy server just replying +OK and the result will not change.

You should try this against MySQL too, and you'll see similar numbers, for sure not an order of magnitude different than that even if SQL involves much more query processing and so forth.

Re: Mongo Vs Redis, The Increment Battle

#14
post #13

Running your benchmark I get 11216 increments per second Running the redis-benchmark from ( http://redis.googlecode.com/files/redis-2.0.4.tar.gz ) with 50 parallel clients 37800 requests per second I would like to see the numbers for 50 clients to mongo doing the same.

interesting but 37800 is low too, either not Linux or is a Virtual Machine :) That's what I get in my desktop system with Linux (Xeon E5520 2.27 Ghz):

INCR: 126743.98 requests per second

Post reply on HN