Benchmark of client APIs per get query?
Kevin A. Burton
burton at newsmonster.org
Sat Dec 11 12:36:45 PST 2004
I'm curious to find out if there are any bencharks WRT client APIs.
I wrote a quick benchmark to test against my localhost running Memcached
1.1.11 and the Java client 1.1 and I'm seeing about 1ms per get().
I noted in the archives WRT apr_memcached:
> I was quite surprised at how much it beats the Perl Client...
>
> 2967 vs 16650 gets a second in my tests.. (scripts I used are at the
> URL above)
>
Well I'm seeing < 1000 gets per second. I also see less than < 500
gets+sets per second (when I do this at the same time).
I expect some of this to be related to Java serialization.
So I have a few questions:
1. Has anyone created a client benchmark? It would be interesting to
have a basic benchmark with clients storing to localhost N bytes and
then trying to determine gets() per second.
2. How does apr_memcached store objects in memcached? Direct byte[]s
from memory? Any ideas why its so much faster?
3. How does the perl client store them?
--
Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an
invite! Also see irc.freenode.net #rojo if you want to chat.
Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you
should work for Rojo! If you recommend someone and we hire them you'll
get a free iPod!
Kevin A. Burton, Location - San Francisco, CA
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
More information about the memcached
mailing list