harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Deakin <oliver.dea...@googlemail.com>
Subject Re: [classlib][icu] Bringing ICU level up to 3.8
Date Thu, 11 Oct 2007 15:49:33 GMT
Tony Wu wrote:
> On 10/8/07, Oliver Deakin <oliver.deakin@googlemail.com> wrote:
>> Are there any particular
>> benchmarks you had in mind for this?
>>
>>     
> ya, there is a micro benchmark on HARMONY-3709
>
>   
<SNIP!>

I have run the micro benchmark on Harmony with it's current ICU 
configuration (icu4jni 3.4.4) and on Harmony with pure icu4j 3.8. The 
results are pretty much as expected - for small jobs icu4j is 
significantly faster, for large jobs icu4jni comes out on top (full 
results at the end of this email). It seems that performance-wise there 
are benefits on both sides depending on the work we are doing.

Regards,
Oliver


Encoding:

Small Input:
Encoding: GB18030 , 1000000 times
J Milliseconds: 1015.0
JNI Milliseconds: 1000.0
J/JNI Percentage: 101.5
JNI/J Percentage: 98.5

Small Input:
Encoding: ISO-8859-1 , 1000000 times
J Milliseconds: 328.0
JNI Milliseconds: 703.0
J/JNI Percentage: 46.7
JNI/J Percentage: 214.3

Small Input:
Encoding: UTF-8 , 1000000 times
J Milliseconds: 343.0
JNI Milliseconds: 594.0
J/JNI Percentage: 57.7
JNI/J Percentage: 173.2

Large Input:
Encoding: GB18030 , 1000 times
J Milliseconds: 7312.0
JNI Milliseconds: 2984.0
J/JNI Percentage: 245.0
JNI/J Percentage: 40.8

Large Input:
Encoding: ISO-8859-1 , 1000 times
J Milliseconds: 188.0
JNI Milliseconds: 110.0
J/JNI Percentage: 170.9
JNI/J Percentage: 58.5

Large Input:
Encoding: UTF-8 , 1000 times
J Milliseconds: 594.0
JNI Milliseconds: 359.0
J/JNI Percentage: 165.5
JNI/J Percentage: 60.4


Decoding:

Small Input:
Decoding: GB18030 , 1000000 times
J Milliseconds: 625.0
JNI Milliseconds: 766.0
J/JNI Percentage: 81.6
JNI/J Percentage: 122.6

Small Input:
Decoding: ISO-8859-1 , 1000000 times
J Milliseconds: 328.0
JNI Milliseconds: 781.0
J/JNI Percentage: 41.9
JNI/J Percentage: 238.1

Small Input:
Decoding: UTF-8 , 1000000 times
J Milliseconds: 360.0
JNI Milliseconds: 688.0
J/JNI Percentage: 52.3
JNI/J Percentage: 191.1

Large Input:
Decoding: GB18030 , 1000 times
J Milliseconds: 1969.0
JNI Milliseconds: 1719.0
J/JNI Percentage: 114.5
JNI/J Percentage: 87.3

Large Input:
Decoding: ISO-8859-1 , 1000 times
J Milliseconds: 140.0
JNI Milliseconds: 78.0
J/JNI Percentage: 179.5
JNI/J Percentage: 55.7

Large Input:
Decoding: UTF-8 , 1000 times
J Milliseconds: 719.0
JNI Milliseconds: 187.0
J/JNI Percentage: 384.4
JNI/J Percentage: 26.0

Mime
View raw message