System.out.println( "Custom ObjectHashMap put(key,value) ET - " + ((end - start)) );
}
public void testStringData3() {
final int count = 100000;
final ObjectHashMap map = new ObjectHashMap();
assertNotNull( map );
for ( int idx = 0; idx < count; idx++ ) {
final String key = "key" + idx;
final String strval = "value" + idx;
map.put( key,
strval );
}
final long start = System.currentTimeMillis();
for ( int idx = 0; idx < count; idx++ ) {
final String key = "key" + idx;
map.get( key );
}
final long end = System.currentTimeMillis();
System.out.println( "Custom ObjectHashMap get(key) ET - " + ((end - start)) );
}