|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: learning memcachedby Anonymous Monk |
| on May 21, 2011 at 02:44 UTC ( #906021=note: print w/ replies, xml ) | Need Help?? |
|
What am I doing wrong, or are my expectations wrong? I think you benchmark is flawed. You say you have 20_000 random entries, but you only make 2723 queries. Instead of benchmarking for 3 wallclock seconds (the default, -3), try benchmarking multiples of 20_000 iterations. After that, I would pre-load entries into the cache, and benchmark retrieval only.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||