@Test // 1000000 times: 450 mills. // 1000000 times: 480 mills. // 1000000 times: 487 mills. public void toDate() { Date value = null; int count = 1000000; // 100w long beg = System.currentTimeMillis(); for (int i = 0; i < count; i++) { value = CalendarHelper.toDate(CalendarHelper.today()); } // long end = System.currentTimeMillis(); System.out.println(count + " times: " + (end - beg) + " mills. "); System.out.println(DateHelper.toString(value)); System.out.println(DateHelper.toString(value, DateHelper.DATE_TIME_MILLS_PATTERN)); }