org.apache.jcs
Class JCSvsHashtablePerformanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jcs.JCSvsHashtablePerformanceTest
All Implemented Interfaces:
junit.framework.Test

public class JCSvsHashtablePerformanceTest
extends junit.framework.TestCase

This test ensures that basic memory operations are with a speficified order of magnitude of the java.util.Hashtable.

Currenlty JCS is un 2x a hashtable for gets, and under 1.2x for puts.


Constructor Summary
JCSvsHashtablePerformanceTest(String testName)
           
 
Method Summary
 void doWork()
           
static void main(String[] args)
           
static junit.framework.Test suite()
          A unit test suite for JUnit
 void testSimpleLoad()
          A unit test for JUnit
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JCSvsHashtablePerformanceTest

public JCSvsHashtablePerformanceTest(String testName)
Parameters:
testName -
Method Detail

suite

public static junit.framework.Test suite()
A unit test suite for JUnit

Returns:
The test suite

testSimpleLoad

public void testSimpleLoad()
                    throws Exception
A unit test for JUnit

Throws:
Exception - Description of the Exception

doWork

public void doWork()

main

public static void main(String[] args)
Parameters:
args -


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.