| java.lang.Object com.sosnoski.xmlbench.BenchBase com.sosnoski.xmlbench.BenchSAX
BenchSAX | public class BenchSAX extends BenchBase (Code) | | SAX parser benchmark test class. This class defines a single test for a
SAX parser, parsing the document text and accumulating document
characteristics.
author: Dennis M. Sosnoski version: 1.2 |
Constructor Summary | |
public | BenchSAX() Constructor. |
Method Summary | |
public int[] | runSpaceTest(int passes, int excludes, byte[][] texts) Main space test method. | public int[] | runTimeTest(int passes, int excludes, byte[][] texts) Main time test method. |
BenchSAX | public BenchSAX()(Code) | | Constructor.
Parameters: print - test results listing destination (null if notto be printed) |
runSpaceTest | public int[] runSpaceTest(int passes, int excludes, byte[][] texts)(Code) | | Main space test method. This implementation of the abstract base class
method just parses the documents repeatedly to check memory usage by the
parser.
Parameters: count - number of units of test to run in this pass Parameters: excludes - number of initialization passes excluded from averages Parameters: texts - document texts for test result times array |
runTimeTest | public int[] runTimeTest(int passes, int excludes, byte[][] texts)(Code) | | Main time test method. This implementation of the abstract base class
method just parses the document texts repeatedly, accumulating summary
information for the documents which can be compared to that obtained
from the documents representation tests.
Parameters: passes - number of passes of each test Parameters: excludes - number of initialization passes excluded from averages Parameters: texts - document texts for test result times array |
|
|