MongoDB客户端的选择[/align]
在MongoDB用户的Google Group上一位用户发布了其对目前几个主流MongoDB客户端的测试数据.原文如下:
- Hi there,
- I made the following trival benchmark:
- 100.000 insertions of a dict like
- d = {
- ‘name’ : ‘Andreas Jung’,
- ’street’ : ‘xxxxxxxxxxxxx’,
- ‘city’ : ‘yyyyyyyyyy’,
- ‘zip’ : 72070,
- }
- into MongoDB.
- Average insertion time on my Linux box
- Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
- pymongo: 9-10 seconds
- Ming: 40-42 seconds
- Mongokit: 80 seconds
- Using MongoDB 1.4.1
复制代码可以看出pymongo在性能上远远胜出, 这一帖子甚至在后来引出了Mongokit的作者,作者在得到楼主的测试脚本后分析了Mongokit慢的原因,对Mongokit作出了改进..
这是一个开放的世界.
作者: 冰释一片天
时间: 2012-02-24 17:07
谢谢分享
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) |
Powered by Discuz! X3.2 |