If you're issuing repeated queries against the same document, you might want to look at the CachedXPathAPI class I added yesterday. We're still refining that, but I suspect your benchmark falls into _exactly_ the sort of case this alternative is intended to address.
- Performance of XPathAPI, selectSingleNode() Thomas B�rkel
- Re: Performance of XPathAPI, selectSingleNode() Geert Poels
- RE: Performance of XPathAPI, selectSingleNode() Joseph_Kesselman
- RE: Performance of XPathAPI, selectSingleNode() Thomas B�rkel
