harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-5129) [classlib][icu] text formatting degradation after at 592434
Date Sun, 10 Feb 2008 04:14:08 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tony Wu resolved HARMONY-5129.
------------------------------

    Resolution: Fixed

Fixed in r612718. no performance issue here.

> [classlib][icu] text formatting degradation after at 592434
> -----------------------------------------------------------
>
>                 Key: HARMONY-5129
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5129
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Sergey Dmitriev
>            Assignee: Tony Wu
>
> We have a huge performance degradation on text formatting after commit
> r592434 "Apply patch Harmony-5061 which removes the duplicate locale
> data".
> For example a simple mini test using java.util.text.MessageFormat
> shows approx 10x-40x degradation (see below about such a fluctuation).
> {boy@moon:~/tmp/icutest} cat icutest.java
> import java.text.*;
> import java.util.*;
> public class icutest {
> 	static int MSRM_ITER = 1000;
> 	public static void main(String[] args) {
> 		for(;;) {
> 			long s = System.currentTimeMillis();
>             Date date = new Date(System.currentTimeMillis());
> 			for (int i =0; i < MSRM_ITER; i++) {
>                 MessageFormat.format("{0, date} {0, time} ", new Object[] { date });
> 			}
> 			long d = System.currentTimeMillis() - s;
> 			System.out.println("elapsed: " + d);
> 		}
> 	}
> }
> {boy@moon:~/tmp/icutest} ~/harmony.r592433.ia32/bin/java icutest
> elapsed: 2233
> elapsed: 1246
> elapsed: 1386
> elapsed: 1047
> elapsed: 1201
> elapsed: 1057
> elapsed: 776
> elapsed: 825
> elapsed: 781
> elapsed: 807
> elapsed: 830
> elapsed: 760
> elapsed: 767
> elapsed: 749
> ^C
> boy@moon:~/tmp/icutest} ~/harmony.r592434.ia32/bin/java icutest
> elapsed: 13004
> elapsed: 10352
> elapsed: 11202
> elapsed: 9196
> elapsed: 9901
> elapsed: 29272
> elapsed: 23923
> elapsed: 23544
> elapsed: 17603
> elapsed: 25032
> elapsed: 24258
> elapsed: 22159
> elapsed: 7075
> ^C
> As you can see we have a fluctuation from 7075 to 29272. Probably the
> updated java/text creates a lot of objects and this fluctuation is
> about GC's activity.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message