urllib2 vs urlgrabber

Wilk wilk-ml at flibuste.net
Mon May 9 15:24:09 BST 2005


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

-- 
William - http://flibuste.net





More information about the bazaar mailing list