2 ms·
It's worth noting that the numbers for MySQL are slightly artificial. In the real world, you would use a relational database and ask it difficult questions that
by henrikschroder 17y ago
It's worth noting that the numbers for MySQL are slightly artificial. In the real world, you would use a relational database and ask it difficult questions that take a lot longer to answer than just getting key/value pairs.
If you just look at the numbers on that page, you would think that Memcached is only 10 times faster than MySQL, but in reality, the speed increase is closer to 100 times or more, because MySQL grows slower the more difficult questions you ask, and the more data you've stored in it. Memcached performance is (almost) independent of the size of the data, and it can only really do one thing, but it does it well.
Then again, if all you're looking to do is to store key/value-pairs, this benchmark is useful.
- antirez 17y agoyep it's work to note that at the contrary most Redis higher-level operations like PUSH / POP or even getting a few sorted elements from a ZSet are as fast as GET / SET.