From: Rod J. <joh...@us...> - 2006-04-21 09:31:13
|
Update of /cvsroot/springframework/spring/tiger/test/org/springframework/aop/aspectj/autoproxy/benchmark In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14325/tiger/test/org/springframework/aop/aspectj/autoproxy/benchmark Modified Files: BenchmarkTests.java Log Message: Reduced number of passes to 10, and commented how to change it back to make tests meaningful Index: BenchmarkTests.java =================================================================== RCS file: /cvsroot/springframework/spring/tiger/test/org/springframework/aop/aspectj/autoproxy/benchmark/BenchmarkTests.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BenchmarkTests.java 12 Apr 2006 18:17:39 -0000 1.3 --- BenchmarkTests.java 21 Apr 2006 09:30:50 -0000 1.4 *************** *** 28,40 **** * Tests for AspectJ auto proxying. Includes mixing with Spring AOP * Advisors to demonstrate that existing autoproxying contract is honoured. ! * * @author Rod Johnson */ public class BenchmarkTests extends TestCase { private static final String ASPECTJ_CONTEXT = "/org/springframework/aop/aspectj/autoproxy/benchmark/aspectj.xml"; protected int getCount() { ! return 1000000; } --- 28,54 ---- * Tests for AspectJ auto proxying. Includes mixing with Spring AOP * Advisors to demonstrate that existing autoproxying contract is honoured. ! * <p> ! * Change the return of the getCount() method to MEANINGFUL_NUMBER_OF_PASSES ! * to make this test actually run a meaningful benchmark. Currently it is set ! * to execute the test suite quickly, not produce meaningful results. * @author Rod Johnson */ public class BenchmarkTests extends TestCase { + /** + * Number of passes high enough to produce meaningful results. + */ + private static final int MEANINGFUL_NUMBER_OF_PASSES = 1000000; + private static final String ASPECTJ_CONTEXT = "/org/springframework/aop/aspectj/autoproxy/benchmark/aspectj.xml"; + /** + * Change the return number to MEANINGFUL_NUMBER_OF_PASSES to make this + * test useful + * @return the number of passes to runs + */ protected int getCount() { ! return 10; ! //return MEANINGFUL_NUMBER_OF_PASSES; } |