Author: manik.surtani(a)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();
Show replies by date