Methods Summary |
---|
protected void | setUp()
super.setUp();
mMap = new HashMap();
mKeys = new String[ITERATIONS];
for (int i = ITERATIONS - 1; i >= 0; i--) {
mKeys[i] = Integer.toString(i, 16);
mMap.put(mKeys[i], i);
}
|
public int | startPerformance(PerformanceTestCase.Intermediates intermediates)
intermediates.setInternalIterations(ITERATIONS);
return 0;
|
public void | testHashMapClone()
HashMap cMap;
for (int i = ITERATIONS - 1; i >= 0; i--) {
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
cMap = (HashMap) mMap.clone();
}
|
public void | testHashMapContainsValue()
boolean flag;
for (int i = ITERATIONS - 1; i >= 0; i--) {
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
flag = mMap.containsValue(i);
}
|
public void | testHashMapEntrySet()
Set keyset;
for (int i = ITERATIONS - 1; i >= 0; i--) {
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
keyset = mMap.entrySet();
}
|
public void | testHashMapGet()
int num;
for (int i = ITERATIONS - 1; i >= 0; i--) {
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
num = (Integer) mMap.get(mKeys[i]);
}
|
public void | testHashMapKeySet()
Set keyset;
for (int i = ITERATIONS - 1; i >= 0; i--) {
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
keyset = mMap.keySet();
}
|
public void | testHashMapRemove()
for (int i = ITERATIONS - 1; i >= 0; i--) {
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
mMap.remove(mKeys[i]);
}
|
public void | testHashMapSize()
int len;
for (int i = ITERATIONS - 1; i >= 0; i--) {
len = mMap.size();
len = mMap.size();
len = mMap.size();
len = mMap.size();
len = mMap.size();
len = mMap.size();
len = mMap.size();
len = mMap.size();
len = mMap.size();
len = mMap.size();
}
|
public void | testHashMapValues()
Collection c;
for (int i = ITERATIONS - 1; i >= 0; i--) {
c = mMap.values();
c = mMap.values();
c = mMap.values();
c = mMap.values();
c = mMap.values();
c = mMap.values();
c = mMap.values();
c = mMap.values();
c = mMap.values();
c = mMap.values();
}
|