Author serhiy.storchaka
Recipients brett.cannon, pitrou, serhiy.storchaka
Date 2015-11-20.21:34:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448055276.87.0.131425163444.issue25638@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry Brett.

How tests were ran? There are two implementations of ElementTree, accelerated and non-accelerated. xml.etree.ElementTree by default is accelerated in Python 3, but non-accelerated in Python 2.

$ python2.7 bm_elementtree.py -n 7 --take_geo_mean 
0.463665158795
$ python2.7 bm_elementtree.py -n 7 --take_geo_mean --etree-module=xml.etree.ElementTree
5.46309932568
$ python3.4 bm_elementtree.py -n 7 --take_geo_mean --etree-module=xml.etree.ElementTree
0.813397633467649
$ python3.4 bm_elementtree.py -n 7 --take_geo_mean --etree-module=xml.etree.ElementTree --no-accelerator
5.31174765817514

If run the test with the same options --etree-module=xml.etree.ElementTree, it will use accelerated implementation in Python 3 and non-accelerated in Python 2.
History
Date User Action Args
2015-11-20 21:34:36serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, pitrou
2015-11-20 21:34:36serhiy.storchakasetmessageid: <1448055276.87.0.131425163444.issue25638@psf.upfronthosting.co.za>
2015-11-20 21:34:36serhiy.storchakalinkissue25638 messages
2015-11-20 21:34:36serhiy.storchakacreate