You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2001/12/19 23:04:48 UTC
cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/test DefaultQueuePerformanceTestCase.java FixedSizeQueuePerformanceTestCase.java FixedSizeQueueTestCase.java QueueTestCase.java
bloritsch 01/12/19 14:04:48
Modified: src/scratchpad/org/apache/avalon/excalibur/event/test
FixedSizeQueueTestCase.java QueueTestCase.java
Added: src/scratchpad/org/apache/avalon/excalibur/event/test
DefaultQueuePerformanceTestCase.java
FixedSizeQueuePerformanceTestCase.java
Log:
separate performance testing and function testing
Revision Changes Path
1.6 +0 -12 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/test/FixedSizeQueueTestCase.java
Index: FixedSizeQueueTestCase.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/test/FixedSizeQueueTestCase.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- FixedSizeQueueTestCase.java 2001/12/19 21:53:47 1.5
+++ FixedSizeQueueTestCase.java 2001/12/19 22:04:48 1.6
@@ -22,18 +22,6 @@
super( name );
}
- public void testMillionIterationOneElement()
- throws Exception
- {
- this.performMillionIterationOneElement( new FixedSizeQueue( 32 ) );
- }
-
- public void testMillionIterationTenElements()
- throws Exception
- {
- this.performMillionIterationTenElements( new FixedSizeQueue( 32 ) );
- }
-
public void testFixedSizeQueue()
throws Exception
{
1.6 +0 -12 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/test/QueueTestCase.java
Index: QueueTestCase.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/test/QueueTestCase.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- QueueTestCase.java 2001/12/19 21:53:47 1.5
+++ QueueTestCase.java 2001/12/19 22:04:48 1.6
@@ -22,18 +22,6 @@
super( name );
}
- public void testMillionIterationOneElement()
- throws Exception
- {
- this.performMillionIterationOneElement( new DefaultQueue() );
- }
-
- public void testMillionIterationTenElements()
- throws Exception
- {
- this.performMillionIterationTenElements( new DefaultQueue() );
- }
-
public void testDefaultQueue()
throws Exception
{
1.1 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/test/DefaultQueuePerformanceTestCase.java
Index: DefaultQueuePerformanceTestCase.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.excalibur.event.test;
import junit.framework.TestCase;
import org.apache.avalon.excalibur.event.DefaultQueue;
/**
* The default queue implementation is a variabl size queue.
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
*/
public final class DefaultQueuePerformanceQueueTestCase extends AbstractQueueTestCase
{
public DefaultQueuePerformanceQueueTestCase( String name )
{
super( name );
}
public void testMillionIterationOneElement()
throws Exception
{
this.performMillionIterationOneElement( new DefaultQueue() );
}
public void testMillionIterationTenElements()
throws Exception
{
this.performMillionIterationTenElements( new DefaultQueue() );
}
}
1.1 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/test/FixedSizeQueuePerformanceTestCase.java
Index: FixedSizeQueuePerformanceTestCase.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.excalibur.event.test;
import junit.framework.TestCase;
import org.apache.avalon.excalibur.event.FixedSizeQueue;
/**
* The default queue implementation is a variabl size queue.
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
*/
public final class FixedSizeQueuePerformanceTestCase extends AbstractQueueTestCase
{
public FixedSizeQueuePerformanceTestCase( String name )
{
super( name );
}
public void testMillionIterationOneElement()
throws Exception
{
this.performMillionIterationOneElement( new FixedSizeQueue( 32 ) );
}
public void testMillionIterationTenElements()
throws Exception
{
this.performMillionIterationTenElements( new FixedSizeQueue( 32 ) );
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>