Message255021
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. |
|
Date |
User |
Action |
Args |
2015-11-20 21:34:36 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, pitrou |
2015-11-20 21:34:36 | serhiy.storchaka | set | messageid: <1448055276.87.0.131425163444.issue25638@psf.upfronthosting.co.za> |
2015-11-20 21:34:36 | serhiy.storchaka | link | issue25638 messages |
2015-11-20 21:34:36 | serhiy.storchaka | create | |
|