MemCached java client 1.5.1 性能测试

去年,我曾经多 1.3.2 版本的 java client 很不满意,具体见

http://hi.baidu.com/jabber/blog/category/Memcached

今年,它推出了两个新版本,据说

02-28-2007
Released version 1.5.1 today. This is a fix for 1.5, which had a bug causing it to loop when all cache servers dropped.

12-17-2006

Released version 1.5 today. Lots of fixes and performance improvements in this one. Should see decreased lock contention. Also fixed a nasty bug w/ failover/failback. No longer bundling up releases for JDK1.4 now that JDK6 is released. If you need 1.4, you can use an older version, or take the source and port back to compile under 1.4.

http://www.whalin.com/memcached/

最近终于抽空测试了一下。


GET 测试方法是向服务器查询一个随机的 key, 不知道匹配不到会不会影响速度。测试结果表现较差。
SET 是存取一个随机KEY, VALUE是0.1k的字符串。

在我的测试环境下,6个线程性能达到最佳,GET上限是9000,SET上限是13000。

memcached 在另外一台服务器,CPU占用在5%以下,应该不会成为瓶颈。

结论:set的速度已经趋于可以接受,get的速度待提高。
posted on 2008-07-11 01:09  一江水  阅读(615)  评论(0编辑  收藏  举报