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.
============================================================================
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.
============================================================================
- duplicates
-
JDK-5002890 (cs) Charset.isSupported is slow when invoked for different charsets
- Resolved