Hi,

> Hi MIchael,
> if you used 
> parser->useScanner(XMLUni::fgWFXMLScanner) on the 
> SAX1, you should use 
> reader->setProperty(XMLUni::fgXercesScannerName, 
> XMLUni::fgWFXMLScanner) in order to have them use 
> the same scanner, and yield comparable results.

OK, I changed the implementation accordingly. BTW, an additional type case from 
const void* to void* was necessary:

parser->setProperty(XMLUni::fgXercesScannerName,(void*)XMLUni::fgWFXMLScanner)

Here are the results (I did not rerun the SAX1 benchs, so they are equal to the 
old ones):


Xerces XML Parser Results (SAX1)
--------------------------------
Data     size    real(s)  user(s)  sys(s)  cpu(%)  throughput(MB/s)
-------------------------------------------------------------------
XMark      10MB    0.83     0.3    0       38.33   33.33
XMark     100MB    5.02     2.72   0.08    54.66   35.71
XMark    1000MB   46.44    22.41   0.76    49.33   43.15
XMark    5000MB  241.04   116.96   4.03    49.66   41.32
MEDLINE   656MB   32.15    22.55   0.58    71.33   28.36
ProtSeq   685MB   32.79    25.94   0.54    80      25.86

Xerces XML Parser Results (SAX2)
--------------------------------
Data     size    real(s)  user(s)  sys(s)  cpu(%) throughput(MB/s)
-------------------------------------------------------------------
XMark      10MB    0.8     0.38    0.01    48.66  25.64
XMark     100MB    5.09    3.09    0.08    62     31.54
XMark    1000MB   48.73   29.45    0.84    61.66  33.01
XMark    5000MB  253.73  149.66    3.99    60     32.54
MEDLINE   656MB   33.53   29.11    0.56    88     22.1
ProtSeq   685MB   38.92   32.88    0.6     85.33  20.45

So the results are still worse than SAX1, but better than before.

> BTW, the WF in the WFXMLScanner stands for 
> well-formed, in the sense that the scanner is 
> written so that it performs only the checks for 
> well-formedness (no DTD or XMLSchema validation). 
> The other scanners available are DGXMLScanner 
> (for DTD validation only), SGXMLScanner (for 
> XMLSchema validation only) and IGXMLScanner (for 
> both DTD and XMLSchema validation).

OK, thanks again for all the support.

Kind regards
Michael
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

Reply via email to