JDK-4493297 : performance regression in SimpleDateFormat.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • OS: solaris
  • CPU: sparc
  • Submitted: 2001-08-17
  • Updated: 2013-11-01
  • Resolved: 2001-08-20
Related Reports
Relates :  
Relates :  
Description
The SimpleDateFormat.<init> was faster on 1.3.1 than on 1.4, see the attachment.

Comments
EVALUATION With the following test program, import java.text.SimpleDateFormat; public class NewSimpleDateFormat { public static void main (String args[]) { for (int i = 0; i < 10000; i++) { new SimpleDateFormat("yyyy.MM.dd G 'at' HH:mm:ss z"); } } } Total (usr+sys) CPU times in 1.4 (b76) and 1.3.1 are: 1.4 b76: 1.75 sec [1.64 + 0.11] 1.3.1: 1.77 sec [1.61 + 0.16] The platform is Solaris 8/Ultra-60 (450MHz). tcsh is used to measure CPU time. The usr CPU time in 1.4 b76 is slightly larger (~2%) because of the 4326988 fix. But 1.4 b76 is still faster than 1.3.1 (in total CPU time). ###@###.### 2001-08-20
20-08-2001