I'm not trying to be negative; simply pointing out my initial observation
after loading 2.2. I was actually just trying to obtain some benchmarks
before we begin working with XSLTC and was very surprised with the results.

I ran the tests on a 700Mhz, 512MB machine with W2K OS.  They were run in
the JBuilder 4.0 IDE using JBuilder's 1.3.0 JDK.  I'll rerun using Sun
1.3.1_01 JDK and report back if this makes a difference.  As noted, I used
Xerces 1.4.4 in each case.

The tests were run under identical conditions - same code, same machine
load, etc.  The only difference was the xalan portion of the classpath.  I
ran 15 iterations yesterday and additional ones today using a small xml file
(10 lines) and a large one (695 lines).  The results were consistent for
each iteration of the large file.  Performance was not significantly slower
for the small file using 2.2. 

For timings, I just wrapped the statements from my original email with
statements to obtain the current system time.  I ran other tests without
including the instantiation code but this didn't appear to matter much.  The
transform emits the file to System.out.  Here is the relevant code; the rest
of the class doesn't do much except run some DOM and SAX tests.

t1 = System.currentTimeMillis();
TransformerFactory transFactory = TransformerFactory.newInstance();
Transformer transformer = transFactory.newTransformer(new
StreamSource(xslFile));
transformer.transform(new StreamSource(xmlFile), new
StreamResult(System.out));
t2 = System.currentTimeMillis();

I've attached the xml and xsl files.  The xml file is a Presidents file that
I obtained from some xml article or book a few months ago; the xsl file is a
modified version of a stylesheet that accompanied it.

-----Original Message-----
From: Shane Curcuru [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 11:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Xalan 2.2 transforms much slower than 2.1


---- "Gauthier, Jerry" <[EMAIL PROTECTED]> ----
> Is 2.2 much slower than 2.1 for transformations or am I missing 
> something here?

Well, it all depends on the details, much like any performance issue. 
In some cases, Xalan-J 2.2 is faster than 2.1; in other cases it may be
slower.  Same thing with 2.3D1 and the upcoming 2.3 build.

There's the whole host of usual questions (Running on the same machine?
Other processor/disk/memory loads? Timing methodology? etc.) plus the
host of specific questions (What's the rest of your app doing? Can you
post the actual stylesheet and xml doc? etc.) that we'd need to find
out about before we could answer a broad question like this.

Sorry for the flippant email, but it's disheartening to see such
broadly negative subject lines without all the details.  (Plus I
haven't had enough sleep this week, and still have to finish up any
build issues for our 2.3 release)

=====
- Shane

<eof aka="mailto:[EMAIL PROTECTED]"
 .sig="Du sublime au ridicule il n'y a qu'un pas." />

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

Attachment: presidents.xml
Description: Binary data

Attachment: presidents.xsl
Description: Binary data

Reply via email to