Hi,
While migrating from memcache to Redis I noticed a major slowdown in single connection mode. While investigating it become obvious that something strange is going on. The test was performed under the following conditions:
1) local connection through socket
2) save=""
3) empty db with one string key
4) 30000 consecutive GETs to this key from one connection
I've got about 15000 rps on Redis on this test. Previously , I had about 30000 on memcache. It seemed strange, so I ran redis-benchmark, and got the same result with -c 1 parameter. With default 5 connections I get about 60000, which is great, but my results in single connection mode are discouraging.
Is it normal, or it is an issue with my server?
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Hi,
Actually, I do not care about absolute values. What really bothers me is the relative performance. I didn't expect Redis to be two times slower than memcache under the same conditions, and I don't see that as "normal".
Is that normal?
But let's run another test. Here is my Perl script:
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Is it normal, or it is an issue with my server?
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
If my client library is the issue, then why do I get the same exact results with redis-benchmark and memtier-benchmark in single connection mode with Redis?
Actually, I am wondering why memtier-benchmark is slower, not the other way around.
And I see no point in blaming an event library for a single client connection.
Actually, I am wondering why memtier-benchmark is slower, not the other way around.
And I see no point in blaming an event library for a single client connection.
This is one of the difficulties in benchmarking anything with a client connection. Well writen code with speed and efficiency as goals is likely to have better results over code which is not written with those goals and is simply a straight-forward means to an interop en. To put it another way, the fastest car in the world can get beaten if the driver can't perform as well as the driver in a car nearly or just as fast. Your drivers are different, performance variance is thus not unexpected. Particularly when you have, in keeping with the metaphor, a professional driver and an amateur one.
Thus, you are not comparing apples with apples. You are not benchmarking redis and memcached, but your client libraries. This may mean for you that if the difference is important, stick with memcached or find a better Redis client. Just be aware it isn't Redis or Memcached, but the client implementation which is your bottleneck.
As for a better Perl Redis client, I do not travel in that circle so I don't have any useful suggestions other than to look for something more than a simple wrapper.
Cheers,
Bill
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.