MongoDB客戶端的選擇[/align]
在MongoDB用戶的Google Group上一位用戶發(fā)布了其對目前幾個主流MongoDB客戶端的測試數(shù)據(jù).原文如下: - 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
復(fù)制代碼可以看出pymongo在性能上遠(yuǎn)遠(yuǎn)勝出, 這一帖子甚至在后來引出了Mongokit的作者,作者在得到樓主的測試腳本后分析了Mongokit慢的原因,對Mongokit作出了改進(jìn)..
這是一個開放的世界.
|