原贴:http://hi.baidu.com/jabber/blog/item/757873f455cf32d9f2d385eb.html
memcached vs MySQL Memory engine table 速度比较
2006-11-14 19:03
Performance compare:
Tim http://hi.baidu.com/jabber/blog/category/Memcached memcached 1.2.0 MySQL 5.0.26 with MEMORY (heap) engine 记录数:50万~100万条 单机,client 从另外一台机访问 数据:单条 0.1K左右 memcached set/get 15,000 / s MySQL memory table: insert/select 5,000 / s 结论: memcached 读写速度是 mysql memory table 3倍左右 优点: MySQL: 适合对 cache 数据进行Select条件查询。 MemCached: 可以设置 exptime (超时时间),无需自己管理 |
最近读者:
![]() | <script type="text/javascript">document.write("<a href='http://passport.baidu.com/?login&tpl=sp&tpl_reg=sp&u="+myref+"' target='_self'>登录</a>后,您就出现在这里。");</script> 登录后,您就出现在这里。 |
2 | 2007-0<script type="text/javascript"> writecmt(1,"70782038b88a1724b9998f48","iso1600","http://hi.baidu.com/jabber","c8d769736f313630301801"); </script>右。 单个key的值越大,是否replace的时间越长? 我只用了一个key,取出来后用php的方法搜索,这样是不是非常影响性能? |
3 | 2007-01-22 23:48 |
4 | 2007-02-08 12:25 |