urllib2 vs urlgrabber

Wilk wilk-ml at flibuste.net
Wed May 11 09:52:06 BST 2005


Martin Pool <mbp at sourcefrog.net> writes:

> On  9 May 2005, Wilk <wilk-ml at flibuste.net> wrote:
>> 
>> I tested remote log with urllib2 and urlgrabber (by setting
>> ENABLE_URLGRABBER), for me it's a lot faster.
>> 
>> time bzr log http://bazaar-ng.org/bzr/bzr.dev/
>> 
>> urllib2
>> 
>> real    1m22.654s
>> user    0m0.900s
>> sys     0m0.100s
>> 
>> urlgrabber
>> 
>> real    0m45.481s
>> user    0m1.110s
>> sys     0m0.100s
>> 
>> I'm surprise to compare with rsync :
>> 
>> time rsync -a bazaar-ng.org::bazaar-ng/bzr/bzr.dev/.bzr/inventory-store .
>> 
>> real    0m52.366s
>> user    0m0.040s
>> sys     0m0.060s
>
> That's not quite a fair comparison because bzr log is only fetching
> the contents of revision-store, not inventory-store.

Sure... It's why i was surprise !

time rsync -rv bazaar-ng.org::bazaar-ng/bzr/bzr.dev/.bzr/revision-store .

real    0m4.300s
user    0m0.000s
sys     0m0.030s

-- 
William - http://flibuste.net





More information about the bazaar mailing list