User: starksm
Date: 02/02/12 01:38:00
Modified: src/main/org/jboss/test/perf/test PerfStressTestCase.java
Log:
Fix some problems with the key ranges and add an assertion in the
Session.remove(int low, int high) method that the remove count
is as expected.
Revision Changes Path
1.4 +5 -22
jbosstest/src/main/org/jboss/test/perf/test/PerfStressTestCase.java
Index: PerfStressTestCase.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/test/PerfStressTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PerfStressTestCase.java 19 Sep 2001 19:16:54 -0000 1.3
+++ PerfStressTestCase.java 12 Feb 2002 09:38:00 -0000 1.4
@@ -35,18 +35,16 @@
/** Test of EJB call invocation overhead.
@author [EMAIL PROTECTED]
- @version $Revision: 1.3 $
+ @version $Revision: 1.4 $
*/
public class PerfStressTestCase extends JBossTestCase
{
int iterationCount;
- int beanCount;
public PerfStressTestCase(String name)
{
super(name);
iterationCount = getIterationCount();
- beanCount = getBeanCount();
}
public void testClientSession() throws Exception
@@ -56,7 +54,7 @@
obj = PortableRemoteObject.narrow(obj, SessionHome.class);
SessionHome home = (SessionHome) obj;
getLog().debug("Found SessionHome @ jndiName=ClientSession");
- Session bean = home.create("Entity");
+ Session bean = home.create("ClientEntity");
getLog().debug("Created ClientSession");
try
{
@@ -64,6 +62,7 @@
}
catch(javax.ejb.CreateException e)
{
+ getLog().error("Failed to create 100 ClientSessions", e);
}
long start = System.currentTimeMillis();
bean.read(0);
@@ -130,19 +129,11 @@
obj = PortableRemoteObject.narrow(obj, EntityHome.class);
EntityHome home = (EntityHome) obj;
getLog().debug("Found EntityHome @ jndiName=Entity");
- EntityPK key = new EntityPK(1);
+ EntityPK key = new EntityPK(0);
Entity bean = null;
getLog().debug("Running with 1 instance...");
findByPrimaryKey(key, home);
- getLog().debug("Running with 100 instance...");
- findByPrimaryKey(key, home);
- getLog().debug("Running with 1000 instance...");
- findByPrimaryKey(key, home);
-/*
- getLog().debug("Running with 10000 instance...");
- findByPrimaryKey(key, home);
-*/
}
public void testFindByPrimaryKey2() throws Exception
{
@@ -151,19 +142,11 @@
obj = PortableRemoteObject.narrow(obj, Entity2Home.class);
Entity2Home home = (Entity2Home) obj;
getLog().debug("Found EntityHome @ jndiName=Entity");
- Entity2PK key = new Entity2PK(1, "String1", new Double(1));
+ Entity2PK key = new Entity2PK(0, "String0", new Double(0));
Entity bean = null;
getLog().debug("Running with 1 instance...");
findByPrimaryKey(key, home);
- getLog().debug("Running with 100 instance...");
- findByPrimaryKey(key, home);
- getLog().debug("Running with 1000 instance...");
- findByPrimaryKey(key, home);
-/*
- getLog().debug("Running with 10000 instance...");
- findByPrimaryKey(key, home);
-*/
}
private void warmup(Probe bean) throws Exception
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development