[jbosscache-commits] JBoss Cache SVN: r7873 - benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/simpletests.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Sat Mar 7 05:52:16 EST 2009


Author: manik.surtani at jboss.com
Date: 2009-03-07 05:52:16 -0500 (Sat, 07 Mar 2009)
New Revision: 7873

Modified:
   benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/simpletests/SimpleTest.java
Log:
Better random keys

Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/simpletests/SimpleTest.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/simpletests/SimpleTest.java	2009-03-07 10:52:02 UTC (rev 7872)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/tests/simpletests/SimpleTest.java	2009-03-07 10:52:16 UTC (rev 7873)
@@ -155,7 +155,7 @@
                      numberOfBytesPut.getAndAdd(calculateSerializedSize(value));
 
                      List<String> path = generatePath(key, cycleNumber);
-                     String attributeKey = key + cycleNumber;
+                     String attributeKey = path.toString() + key + cycleNumber;
 
                      // start your timer...
                      boolean transactional = configuration.isUseTransactions();
@@ -187,7 +187,7 @@
                   try
                   {
                      List<String> path = generatePath(key, cycleNumber);
-                     String attributeKey = key + cycleNumber;
+                     String attributeKey = path.toString() + key + cycleNumber;
 
                      // start your timer...
                      boolean transactional = configuration.isUseTransactions();




More information about the jbosscache-commits mailing list