ReflectiveCallerClassUtility.getCaller(6));
}
@Test
public void testCreateObjects() throws Exception {
Timer timer = new Timer("CreatObjects", COUNT);
timer.start();
for (int i = 0; i < COUNT; ++i) {
new StringFormattedMessage("Hello %1", i);
}
timer.stop();
System.out.println(timer.toString());
final Class<? extends Message> clazz = StringFormattedMessage.class;
timer = new Timer("ReflectionObject", COUNT);
timer.start();
for (int i = 0; i < COUNT; ++i) {
createMessage(clazz, "Hello %1", i);
}
timer.stop();
System.out.println(timer.toString());
}