All I did was to run the DOMCount demo.  If I'm not mistaken, the DOMCount
takes the time before the parsing, then the time after parsing(and traversing
the DOM tree, but that doesn't take too long with a small to medium size file)
and subtract them.  Then it would be just the run time excluding the JVM start
up time.

Is there something wrong with my setup then?  All I did was java -classpath .
dom.DOMCount "XMLfile" -v (for validation) within the Xerces directory.

Mike Pogue wrote:

> Hmmmm...How are you measuring the time?  Remember that when running a Java
> program,
> you should exclude the time to start up the JVM itself (which is slow),
> and just look at the parsing time (which should be more like 20ms, as Uli
> found).
>
> A 2 second parse time sounds like something is wrong with your setup, or
> with the measurement method.  But, I don't have enough info from your email
> to tell you why this is happening on your machine!
>
> Mike
>
> ----- Original Message -----
> From: Alan Sung <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 05, 2000 12:23 PM
> Subject: Re: Performance
>
> 20 msec??  Is there something I'm doing wrong??  I tried with my PC (Pentium
> Pro, win95, 256 meg ram)  It's a lot faster, but still 500 ms without
> validation and 700 ms with validation.  It seems to me that the parser is
> quite slow.
>
> Thanks for the help
>
> Uli Häfele wrote:
>
> > Hello Alan,
> >
> > I tried the example too, and got the results in about 20 msec. (233 MHZ
> > PIII, NT)
> > It seems there must be something else wrong ...
> >
> > greetings
> >
> > Uli Haefele
> >
> > Alan Sung schrieb:
> >
> > > Hello,
> > >
> > > I hope my question is relevant to this list.   I've tried the sample
> > > files with Xerces 1.2 and when I load the DOMCount or the SAXCount
> > > example, it shows that it takes 2 secs to parse the xml file.  The xml
> > > file I used is the one from Xerces, personal-schema.xml.  It seems to me
> > > that it takes too long to parse such a small file, if I need to create,
> > > send and receive XML file in my program and have to parse it, 2 secs
> > > each time would be too long.
> > > Anyone have any opinion on this?  or maybe I'm doing something wrong?
> > >
> > > Thanks in advance.
> >
> > --
> > I never waste memory on things,
> > that can be stored and retrieved from elsewhere.
> >
> >     (Albert Einstein)
> >
> > _______________________________________
> >
> > Besuchen Sie uns!!
> >
> > Systems 2000 in München,
> > 06.11. - 10.11.
> > Hyperwave Stand Halle A2 Stand 103
> > http://www.systems.de
> >
> > tekom Herbsttagung in Wiesbaden
> > 23.11. - 24.11.
> > Schema Stand
> > http://www.tekom.de
> >
> > _______________________________________
> >
> > Uli Häfele
> >
> > Leiter Forschung & Entwicklung
> > MINDLAB Krieger&Partner
> > Marktplatz. 19
> > D-73728 Esslingen
> >
> > Tel.   0049 (0)711 36550-0
> > Durchw.  0049 (0)711 36550-198
> > Fax.   0049 (0)711 36550-555
> >
> > Email: [EMAIL PROTECTED]
> > _______________________________________

Reply via email to