dbertoni 01/06/21 08:36:23
Modified: c/Tests/PerfT perft.cpp
Log:
Changes for new XalanTransformer interfaces.
Revision Changes Path
1.6 +16 -4 xml-xalan/c/Tests/PerfT/perft.cpp
Index: perft.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/PerfT/perft.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- perft.cpp 2001/06/20 16:19:22 1.5
+++ perft.cpp 2001/06/21 15:36:21 1.6
@@ -373,10 +373,15 @@
// Time the parsing(compile) of the XSL
stylesheet and report the results..
//
startTime = clock();
- const XalanCompiledStylesheet* const
compiledSS = xalan.compileStylesheet(xslInputSource);
+ const XalanCompiledStylesheet* compiledSS = 0;
+ xalan.compileStylesheet(xslInputSource,
compiledSS);
endTime = clock();
- // assert(glbStylesheetRoot != 0);
+ if (compiledSS == 0)
+ {
+ continue;
+ }
+
timeinMilliseconds =
calculateElapsedTime(startTime, endTime);
cout << " XSL: " << timeinMilliseconds << "
milliseconds, Parse" << endl;
logFile.addMetricToAttrs("parsexsl",timeinMilliseconds, attrs);
@@ -385,9 +390,16 @@
// Time the parsing of the input XML and
report the results..
//
startTime = clock();
- const XalanParsedSource* const parsedSource =
xalan.parseSource(xmlInputSource);
+ const XalanParsedSource* parsedSource =
0;
+
+ xalan.parseSource(xmlInputSource,
parsedSource);
+
endTime = clock();
- // assert(glbSourceXML != 0);
+
+ if (parsedSource == 0)
+ {
+ continue;
+ }
timeinMilliseconds =
calculateElapsedTime(startTime, endTime);
cout << " XML: " << timeinMilliseconds << "
milliseconds, Parse" <<endl;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]