import gnu.trove.map.TObjectIntMap;
import gnu.trove.map.hash.TObjectIntHashMap;
public class TrovePerformanceAnalysis {
public static void main(String[] args) {
TObjectIntMap<String> map = new TObjectIntHashMap<>();
long startTime = System.currentTimeMillis();
for (int i = 0; i < 1000000; i++) {
map.put("Key " + i, i);
}
for (int i = 0; i < 1000000; i++) {
int value = map.get("Key " + i);
}
long endTime = System.currentTimeMillis();
long totalTime = endTime - startTime;
System.out.println("Total time: " + totalTime + " milliseconds");
}
}