private static class GetDateBenchmarkTest extends BenchmarkTest {
private volatile long currentMillis = 0;
- private Date currentDate = null;
+ private volatile Date currentDate = null;
private ThreadLocal<Long> currentMillisLocal = new ThreadLocal<Long>() {
protected Long initialValue() {
}
long end = System.currentTimeMillis();
- System.out.println("testAccessLogGetDate: " + threadCount +
+ System.out.println(this.getClass().getName() + ": " + threadCount +
" threads and " + iterations + " iterations " +
(useSyncs?"using Syncs":"using ThreadLocals") +
" took " + (end-start) + "ms");