| Weblog: | The Python comunity has too many deceptive XML benchmarks | |
| Subject: | Trying my own tool (Gnosis Utils) | |
| Date: | 2005-01-24 19:47:49 | |
| From: | David_Mertz | |
|
I always so like the breath of fresh air Uche brings to most topics. His benchmark examples are nicely down to earth (I would point out that I always do almost exactly the same thing--including full code--when I benchmark tools in my articles).
Anyway, with no real a priori sense of how it would come out, I decided to try gnosis.xml.objectify in the mix. I like my API best and all :-).
First, the script used:
$ cat time_xo.py
I don't use the gnosis.xml.objectify.utils.XPath() function here, though I could. That's because I don't really believe XPath is entirely Pythonic
The timings are quite consistent between five runs:
Oh... I run on a quite different architecture than Uche, but the Pystone on my Powerbook is just about the same as Uche's:
|
||
Showing messages 1 through 1 of 1.
| Showing messages 1 through 1 of 1. |




I like my (more Pythonic) API better than that in ElementTree, but if I get speed, why not take advantage of /F's underlying work? Of course, there're a zillion things I want to get around to, so it's not quite a promise.