more bench work

This commit is contained in:
kimchy 2011-03-31 18:25:23 +02:00
parent 44d4474f95
commit fb8a389380
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import org.elasticsearch.common.trove.map.hash.TIntObjectHashMap;
import org.elasticsearch.common.trove.map.hash.TObjectIntHashMap;
import org.elasticsearch.common.trove.strategy.IdentityHashingStrategy;
import org.elasticsearch.common.unit.SizeValue;
import org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom;
import java.util.HashMap;
import java.util.IdentityHashMap;
@ -184,7 +185,7 @@ public class StringMapAdjustOrPutBenchmark {
int[] iValues = new int[NUMBER_OF_KEYS];
for (int i = 0; i < values.length; i++) {
iValues[i] = i;
iValues[i] = ThreadLocalRandom.current().nextInt();
}
stopWatch = new StopWatch().start();