Strange performance numbers

Brad Fitzpatrick brad@danga.com
Fri, 12 Sep 2003 00:58:40 -0700 (PDT)


Which client API?

Which server version?  server OS?  epoll?

Compression on or off?

Did you time requests thousands of times and average?  8-45 ms alone is
just noise.

Even if memcache were a bit slower than MySQL (which it's not), you'd
still win because memcache never blocks.  Did you test your application in
parallel (say, 50 simultaenous clients doing 500 requests) or just one
client?


On Fri, 12 Sep 2003, Ryan Mack wrote:

> I'm using memcached for the first time tonight.  I have a page with two DB
> queries.  Without memcached at all (not in the code at all, requests take
> 12ms.  With only the first query using memcache, requests take 10ms.
> With only the second query using memcache, requests take 8ms.  With both
> queries using memcached, requests take 45ms.  This makes no sense to me at
> all.  Am I doing something wrong?
>
> Please reply by personal email, I am not subscribed.
>
> Thanks, Ryan
>
>