from xml.etree.ElementTree import parse import time tic = time.time() parse('cd_catalog.xml') toc = time.time() print toc-tic