Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5002893

Perf. deterioration in 1.4.2 when many charset switches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2_03
    • core-libs
    • generic
    • windows_xp

      We found the performance deterioration occurs in 1.4.2 comparing with
      that in 1.3.1.


      REPRODUCE:
       
        (1) Compile the attached program
        (2) Launch "java CharsetTest01" in 1.3.1 and 1.4.2


      RESULT :
       
        We can see different performance in the lists which the
        test program outputs.

        In 1.3.1_11,

      K:\perf-char-set>java -version
      java version "1.3.1_11"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_11-b02)
      Java HotSpot(TM) Client VM (build 1.3.1_11-b02, mixed mode)

      K:\perf-char-set>java CharsetTest01
      Start
      Finished: 651ms


      However, in 1.4.2_03,


      K:\perf-char-set>java -version
      java version "1.4.2_03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

      K:\perf-char-set>java CharsetTest01
      Start
      Finished: 23724ms


      This seems to worse than 1.3.1.
      We believe the 23.7[sec] in 1.4.2 is too slow than 0.7[sec] in 1.3.1 !!



      CONFIGURATION :
        - OS : WindowsXP( SP1, Japanese )
        - MPU : Pentium IV 1.4[GHz]
        - Mem : 384[MB]
        - JRE : 1.4.2_03



      NOTE:

      In 1.5,

      K:\perf-char-set>java -version
      java version "1.5.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b38)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b38, mixed mode)

      K:\shares2\fujitsu\perf-char-set>java CharsetTest01
      Start
      Finished: 6259ms


      The perf. in 1.5 , 6.3[sec] seems to be better than 23[sec] in 1.4.2,
      but still too slower than 0.6[sec] in 1.3.1.
       

      ============================================================================

            Unassigned Unassigned
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: