org.antlr.stringtemplate.test
Class TestEvalSpeed

java.lang.Object
  extended byorg.antlr.stringtemplate.test.TestSuite
      extended byorg.antlr.stringtemplate.test.TestEvalSpeed

public class TestEvalSpeed
extends TestSuite

A semi-nonserious attempt to gauge speed of StringTemplate. Given the problems associated with using the java system clock as a time measure, I have run this with -Xint (interpreter only mode) to see the relative performance of StringTemplate. I'm just getting started on this.


Field Summary
static int N
           
 
Fields inherited from class org.antlr.stringtemplate.test.TestSuite
testName
 
Constructor Summary
TestEvalSpeed()
           
 
Method Summary
 void runTests()
           
 void testApplyTemplateToList()
           
 void testBaselineLiteral()
           
 void testSingleLocalAttributeReference()
           
 
Methods inherited from class org.antlr.stringtemplate.test.TestSuite
assertEqual, assertEqual, assertTrue, assertTrue, getFailures, getSuccesses, invokeTest, runTest, time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N

public static final int N
See Also:
Constant Field Values
Constructor Detail

TestEvalSpeed

public TestEvalSpeed()
Method Detail

runTests

public void runTests()
              throws java.lang.Throwable
Throws:
java.lang.Throwable

testBaselineLiteral

public void testBaselineLiteral()

testSingleLocalAttributeReference

public void testSingleLocalAttributeReference()

testApplyTemplateToList

public void testApplyTemplateToList()