[jboss-cvs] JBossRemoting ...

Ron Sigal ron_sigal at yahoo.com
Wed Aug 23 19:30:47 EDT 2006


  User: rsigal  
  Date: 06/08/23 19:30:47

  Modified:    JBossRemoting  build.xml
  Log:
  JBREM-562, JBREM-588:  (1) Added tests.performance.sequence and "subtargets" to allow a varialbe number of clients to be used in performance tests.  (2) Added system parameter remoting.metadata.callback to tests.performance.run and tests.performance.seq.run.single.  
  
  Revision  Changes    Path
  1.79      +225 -2    JBossRemoting/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/build.xml,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -b -r1.78 -r1.79
  --- build.xml	23 Aug 2006 20:54:10 -0000	1.78
  +++ build.xml	23 Aug 2006 23:30:47 -0000	1.79
  @@ -9,7 +9,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.78 2006/08/23 20:54:10 telrod Exp $ -->
  +<!-- $Id: build.xml,v 1.79 2006/08/23 23:30:47 rsigal Exp $ -->
   
   <project default="most" name="JBossRemoting">
   
  @@ -123,6 +123,12 @@
            <include name="**/RMIServer.class"/>
         </patternset>
   
  +   	<!-- properties for tests.performance.sequence -->
  +   	<property name="perf.seq.numofcalls" value="100000"/>
  +		<property name="perf.seq.numofclients" value="1"/>
  +   	<property name="perf.seq.payloadsize" value="1024"/>
  +
  +
      </target>
   
   
  @@ -1066,6 +1072,8 @@
                          className="org.jboss.jrunit.controller.reporters.XrefReporter"/>
         </receiver>
   
  +  	   <!-- only used by multiplex transport -->
  +  		<property name="remoting.metadata.callback" value=""/>
         <antcall target="tests.performance.serialization.java" inheritrefs="true">
            <param name="remoting.host" value="localhost"/>
         </antcall>
  @@ -1146,6 +1154,82 @@
   
      </target>
   
  +	  <target name="tests.performance.sequence" depends="configure">
  +
  +	      <mkdir dir="${output.tests.performance}"/>
  +	
  +	      <echo message="${output.lib.dir}"/>
  +	      <taskdef name="receiver" classname="org.jboss.jrunit.controller.ant.AntBenchmarkReceiver"
  +	               classpathref="tests.classpath"/>
  +	      <taskdef name="quit" classname="org.jboss.jrunit.controller.ant.AntQuitBenchmark" classpathref="tests.classpath"/>
  +	      <receiver>
  +	         <databasereceiver jdbcClass="${jdbc-driver-class}" jdbcURL="${jdbc-driver-url}"
  +	                           jdbcUserName="${jdbc-driver-user}" jdbcPassword="${jdbc-driver-password}"
  +	                           onlyIf="jdbc-driver-class"/>
  +	         <filereceiver directory="${output.tests.performance}"/>
  +	         <customreport parameter="${output.tests.performance}"
  +	                       className="org.jboss.jrunit.controller.reporters.XrefReporter"/>
  +	      </receiver>
  +	  	
  +	  	   <!-- only used by multiplex transport -->
  +	  		<property name="remoting.metadata.callback" value=""/>
  +	  	
  +	      <antcall target="tests.performance.seq.run" inheritrefs="true">
  +	      	<param name="target" value="tests.performance.seq.run.single"/>
  +	      	<param name="transport" value="rmi"/>
  +	      </antcall>
  +	      <antcall target="tests.performance.seq.run" inheritrefs="true">
  +	      	<param name="target" value="tests.performance.seq.run.single"/>
  +	      	<param name="transport" value="socket"/>
  +	      </antcall>
  +	      <antcall target="tests.performance.seq.run" inheritrefs="true">
  +	      	<param name="target" value="tests.performance.seq.run.single"/>
  +	      	<param name="transport" value="http"/>
  +	      </antcall>
  +	      <antcall target="tests.performance.seq.run" inheritrefs="true">
  +	      	<param name="target" value="tests.performance.seq.run.single"/>
  +	      	<param name="transport" value="multiplex"/>
  +	      	<param name="remoting.metadata.callback" value="&amp;connectHost=localhost&amp;connectPort=9090"/>
  +	      </antcall>
  +	      <antcall target="tests.performance.seq.run" inheritrefs="true">
  +	      	<param name="target" value="tests.performance.raw.rmi.run.single"/>
  +	      	<param name="transport" value="raw_rmi"/>
  +	      </antcall>
  +	      <antcall target="tests.performance.seq.run" inheritrefs="true">
  +	      	<param name="target" value="tests.performance.raw.socket.run.single"/>
  +	      	<param name="transport" value="raw_socket"/>
  +	      </antcall>
  +	      <antcall target="tests.performance.seq.run" inheritrefs="true">
  +	      	<param name="target" value="tests.performance.spring.rmi.run.single"/>
  +	      	<param name="transport" value="spring_rmi"/>
  +	      </antcall>
  +	   </target>
  +	
  +	<target name="tests.performance.seq.run">
  +      <antcall target="${target}" inheritrefs="true">
  +         <param name="remoting.host" value="localhost"/>
  +         <param name="transport" value="${transport}"/>
  +         <param name="numofcalls" value="${perf.seq.numofcalls}"/>
  +         <param name="numofclients" value="${perf.seq.numofclients}"/>
  +         <param name="payloadsize" value="${perf.seq.payloadsize}"/>
  +         <param name="remoting.metadata.key" value="remoting.metadata"/>
  +         <param name="metadata" value="serializationtype=java"/>
  +         <param name="serialization" value="java"/>
  +         <param name="jboss-junit-configuration" value="${transport}_${perf.seq.numofcalls}_${perf.seq.numofclients}_${perf.seq.payloadsize}_java"/>
  +      </antcall>
  +      <antcall target="${target}" inheritrefs="true">
  +         <param name="remoting.host" value="localhost"/>
  +         <param name="transport" value="${transport}"/>
  +         <param name="numofcalls" value="${perf.seq.numofcalls}"/>
  +         <param name="numofclients" value="${perf.seq.numofclients}"/>
  +         <param name="payloadsize" value="${perf.seq.payloadsize}"/>
  +         <param name="remoting.metadata.key" value="remoting.metadata"/>
  +         <param name="metadata" value="serializationtype=jboss"/>
  +         <param name="serialization" value="jboss"/>
  +         <param name="jboss-junit-configuration" value="${transport}_${perf.seq.numofcalls}_${perf.seq.numofclients}_${perf.seq.payloadsize}_jboss"/>
  +      </antcall>
  +	</target>
  +
      <target name="tests.performance.socket.only" depends="configure">
         <mkdir dir="${output.tests.performance}"/>
   
  @@ -1428,6 +1512,7 @@
            <!--<jvmarg value="-Djrunit.tear_down_timeout=900000"/>-->
            <!--<jvmarg value="-Djrunit.run_test_timeout=900000"/>-->
            <jvmarg value="-D${remoting.metadata.key}=${metadata}"/>
  +      	<jvmarg value="-Dremoting.metadata.callback=${remoting.metadata.callback}"/>
            <classpath>
               <path refid="tests.classpath"/>
               <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
  @@ -1449,6 +1534,56 @@
   
      </target>
   
  +   <target name="tests.performance.seq.run.single" depends="tests.jars">
  +
  +      <!--<taskdef name="receiver" classname="org.jboss.jrunit.controller.ant.AntBenchmarkReceiver" classpathref="tests.classpath"/>-->
  +      <!--<taskdef name="quit" classname="org.jboss.jrunit.controller.ant.AntQuitBenchmark" classpathref="tests.classpath"/>-->
  +      <!--<receiver>-->
  +      <!--<databasereceiver jdbcClass="${jdbc-driver-class}" jdbcURL="${jdbc-driver-url}"  jdbcUserName="${jdbc-driver-user}" jdbcPassword="${jdbc-driver-password}" onlyIf="jdbc-driver-class"/>-->
  +      <!--<filereceiver directory="${output.tests.performance}" />-->
  +      <!--<customreport parameter="${output.tests.performance}" className="org.jboss.jrunit.controller.reporters.XrefReporter"/>-->
  +      <!--</receiver>-->
  +
  +
  +      <echo>Running performance tests for protocol: ${transport}, number of clients: ${numofclients}, payload size:
  +         ${payloadsize}, number of calls: ${numofcalls}</echo>
  +      <!--      <mkdir dir="${output.tests.performance}/${transport}/${numofclients}/${numofcalls}/${payloadsize}"/>-->
  +      <mkdir dir="${output.tests.performance}"/>
  +      <echo>jboss-junit-configuration = ${jboss-junit-configuration}</echo>
  +      <junit printsummary="true" fork="yes" includeantruntime="true">
  +         <jvmarg value="-Dremoting.transport=${transport}"/>
  +         <jvmarg value="-Dremoting.number_of_clients=${numofclients}"/>
  +         <jvmarg value="-Dremoting.number_of_calls=${numofcalls}"/>
  +         <jvmarg value="-Dremoting.payload.size=${payloadsize}"/>
  +         <jvmarg value="-Dremoting.serialization=${serialization}"/>
  +         <jvmarg value="-Dremoting.host=${remoting.host}"/>
  +         <!-- Following needed for multiplex -->
  +         <!--<jvmarg value="-Djvm.mx=512"/>-->
  +         <!--<jvmarg value="-Djrunit.result_timeout=900000"/>-->
  +         <!--<jvmarg value="-Djrunit.tear_down_timeout=900000"/>-->
  +         <!--<jvmarg value="-Djrunit.run_test_timeout=900000"/>-->
  +         <jvmarg value="-D${remoting.metadata.key}=${metadata}"/>
  +      	<jvmarg value="-Dremoting.metadata.callback=${remoting.metadata.callback}"/>
  +         <classpath>
  +            <path refid="tests.classpath"/>
  +            <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
  +         </classpath>
  +         <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
  +         <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
  +                    extension="-${jboss-junit-configuration}.xml"/>
  +         <!--         <batchtest fork="yes" todir="${output.tests.performance}/${transport}/${numofclients}/${numofcalls}/${payloadsize}"-->
  +         <batchtest fork="yes" todir="${output.tests.performance}"
  +                    haltonfailure="no">
  +            <fileset dir="${tests.compile.dir}">
  +               <include name="**/remoting/performance/*synchronous/PerformanceTestCase.class"/>
  +            </fileset>
  +         </batchtest>
  +      </junit>
  +
  +      <!--<quit/>-->
  +
  +   </target>
  +
      <target name="tests.performance.raw.rmi.run" depends="tests.jars">
         <echo>Running performance tests for protocol: ${transport}, number of clients: ${numofclients}, payload size:
            ${payloadsize}, number of calls: ${numofcalls}</echo>
  @@ -1539,7 +1674,95 @@
   
      </target>
   
  +	  <target name="tests.performance.raw.rmi.run.single" depends="tests.jars">
  +	      <echo>Running performance tests for protocol: ${transport}, number of clients: ${numofclients}, payload size:
  +	         ${payloadsize}, number of calls: ${numofcalls}</echo>
  +	      <mkdir dir="${output.tests.performance}"/>
  +	      <echo>jboss-junit-configuration = ${jboss-junit-configuration}</echo>
  +	      <junit printsummary="true" fork="yes" includeantruntime="true">
  +	         <jvmarg value="-Dremoting.transport=${transport}"/>
  +	         <jvmarg value="-Dremoting.number_of_clients=${numofclients}"/>
  +	         <jvmarg value="-Dremoting.number_of_calls=${numofcalls}"/>
  +	         <jvmarg value="-Dremoting.payload.size=${payloadsize}"/>
  +	         <jvmarg value="-Dremoting.serialization=${serialization}"/>
  +	         <jvmarg value="-D${remoting.metadata.key}=${metadata}"/>
  +	         <jvmarg value="-Dremoting.host=${remoting.host}"/>
  +	         <classpath>
  +	            <path refid="tests.classpath"/>
  +	            <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
  +	         </classpath>
  +	         <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
  +	         <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
  +	                    extension="-${jboss-junit-configuration}.xml"/>
  +	         <batchtest fork="yes" todir="${output.tests.performance}"
  +	                    haltonfailure="no">
  +	            <fileset dir="${tests.compile.dir}">
  +	               <include name="**/remoting/performance/raw/**/rmi/**/RMIPerformanceTestCase.class"/>
  +	            </fileset>
  +	         </batchtest>
  +	      </junit>
  +
  +	   </target>
  +	
  +   <target name="tests.performance.raw.socket.run.single" depends="tests.jars">
  +      <echo>Running performance tests for protocol: ${transport}, number of clients: ${numofclients}, payload size:
  +         ${payloadsize}, number of calls: ${numofcalls}</echo>
  +      <mkdir dir="${output.tests.performance}"/>
  +      <echo>jboss-junit-configuration = ${jboss-junit-configuration}</echo>
  +      <junit printsummary="true" fork="yes" includeantruntime="true">
  +         <jvmarg value="-Dremoting.transport=${transport}"/>
  +         <jvmarg value="-Dremoting.number_of_clients=${numofclients}"/>
  +         <jvmarg value="-Dremoting.number_of_calls=${numofcalls}"/>
  +         <jvmarg value="-Dremoting.payload.size=${payloadsize}"/>
  +         <jvmarg value="-Dremoting.serialization=${serialization}"/>
  +         <jvmarg value="-D${remoting.metadata.key}=${metadata}"/>
  +         <jvmarg value="-Dremoting.host=${remoting.host}"/>
  +         <classpath>
  +            <path refid="tests.classpath"/>
  +            <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
  +         </classpath>
  +         <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
  +         <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
  +                    extension="-${jboss-junit-configuration}.xml"/>
  +         <batchtest fork="yes" todir="${output.tests.performance}"
  +                    haltonfailure="no">
  +            <fileset dir="${tests.compile.dir}">
  +               <!--               <include name="**/remoting/performance/**/*TestCase.class"/> -->
  +               <include name="**/remoting/performance/raw/**/socket/**/SocketPerformanceTestCase.class"/>
  +            </fileset>
  +         </batchtest>
  +      </junit>
  +   </target>
  +	
  +   <target name="tests.performance.spring.rmi.run.single" depends="tests.jars">
  +      <echo>Running performance tests for protocol: ${transport}, number of clients: ${numofclients}, payload size:
  +         ${payloadsize}, number of calls: ${numofcalls}</echo>
  +      <mkdir dir="${output.tests.performance}"/>
  +      <echo>jboss-junit-configuration = ${jboss-junit-configuration}</echo>
  +      <junit printsummary="true" fork="yes" includeantruntime="true">
  +         <jvmarg value="-Dremoting.transport=${transport}"/>
  +         <jvmarg value="-Dremoting.number_of_clients=${numofclients}"/>
  +         <jvmarg value="-Dremoting.number_of_calls=${numofcalls}"/>
  +         <jvmarg value="-Dremoting.payload.size=${payloadsize}"/>
  +         <jvmarg value="-Dremoting.serialization=${serialization}"/>
  +         <jvmarg value="-D${remoting.metadata.key}=${metadata}"/>
  +         <jvmarg value="-Dremoting.host=${remoting.host}"/>
  +         <classpath>
  +            <path refid="tests.classpath"/>
  +            <pathelement location="${output.lib.dir}/jboss-remoting-tests.jar"/>
  +         </classpath>
  +         <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
  +         <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
  +                    extension="-${jboss-junit-configuration}.xml"/>
  +         <batchtest fork="yes" todir="${output.tests.performance}"
  +                    haltonfailure="no">
  +            <fileset dir="${tests.compile.dir}">
  +               <include name="**/remoting/performance/spring/**/rmi/**/SpringRMIPerformanceTestCase.class"/>
  +            </fileset>
  +         </batchtest>
  +      </junit>
   
  +   </target>
   
      <!-- ****************************************** -->
      <!-- ***  Start of stress test targets      *** -->
  
  
  



More information about the jboss-cvs-commits mailing list