pauldick 02/05/14 08:39:20
Modified: test/java/src/org/apache/qetest/xsl PerfTestlet.java
Log:
Changed default behavior to perform GC, and fixed a bug in how
properties were read in from the properties file.
Revision Changes Path
1.5 +8 -4
xml-xalan/test/java/src/org/apache/qetest/xsl/PerfTestlet.java
Index: PerfTestlet.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/xsl/PerfTestlet.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- PerfTestlet.java 4 Apr 2002 16:11:57 -0000 1.4
+++ PerfTestlet.java 14 May 2002 15:39:20 -0000 1.5
@@ -77,7 +77,7 @@
* transformWrapper will return different sets of timings.
*
* @author [EMAIL PROTECTED]
- * @version $Id: PerfTestlet.java,v 1.4 2002/04/04 16:11:57 pauldick Exp $
+ * @version $Id: PerfTestlet.java,v 1.5 2002/05/14 15:39:20 pauldick Exp $
*/
public class PerfTestlet extends StylesheetTestlet
{
@@ -113,17 +113,20 @@
{
// Setup: Save options from the datalet in convenience variables
int iterations = 10;
- boolean runtimeGC = false;
+ boolean runtimeGC = true;
long[] times = null;
+ // Read in necessary options from test.properties file.
try
{
iterations =
Integer.parseInt(datalet.options.getProperty("iterations"));
}
catch (Exception e) { /* no-op, leave as default */ }
try
- {
- runtimeGC = (new
Boolean(datalet.options.getProperty("runtimeGC"))).booleanValue();
+ {
+ String gc = datalet.options.getProperty("runtimeGC");
+ if (gc != null)
+ runtimeGC =
(Boolean.valueOf(gc)).booleanValue();
}
catch (Exception e) { /* no-op, leave as default */ }
@@ -290,6 +293,7 @@
if (doGC)
{
Runtime.getRuntime().gc();
+ //System.out.print(".");
}
if (doLog)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]