lxmlの方がおよそ13倍ほどはやいことがわかる。 もちろんパースに要する時間だけなので一概には言えないが、13倍ってすごい! 以下、実験に用いたソース import datetime #BeautifulSoup from BeautifulSoup import BeautifulSoup def b(h,n): dt=datetime.datetime.today() i=0 while (i<n): BeautifulSoup(h) i+=1 return datetime.datetime.today()-dt #lxml from lxml import etree def l(h,n): dt=datetime.datetime.today() i=0 while(i<n): etree.fromstring(h, parser=etree.XMLParser()) i+=1