}
@Test
public void testCachingConfigurationPerformance()
{
Timer timer = Timer.getTimer().start();
int MAX = 5;
for (int i = 0; i < MAX; i++) {
new Thread(request).start();
}
while (votes < MAX)
{
try {
Thread.sleep(10);
if (configBuildCount > 1)
{
Assert.fail();
}
}
catch (InterruptedException e) {}
}
timer.stop();
long elapsedMilliseconds = timer.getElapsedMilliseconds();
System.out.println(elapsedMilliseconds + "ms for " + MAX + " requests");
}