Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 31586 invoked from network); 20 Oct 2007 12:44:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2007 12:44:41 -0000 Received: (qmail 86419 invoked by uid 500); 20 Oct 2007 12:44:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 86396 invoked by uid 500); 20 Oct 2007 12:44:29 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 86387 invoked by uid 99); 20 Oct 2007 12:44:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2007 05:44:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2007 12:44:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AAE9271420D for ; Sat, 20 Oct 2007 05:43:50 -0700 (PDT) Message-ID: <3931556.1192884230686.JavaMail.jira@brutus> Date: Sat, 20 Oct 2007 05:43:50 -0700 (PDT) From: "Mikhail Fursov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-4553) [drlvm][jit][perf]String.compareTo method works slowly In-Reply-To: <9963005.1185454849658.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Fursov reassigned HARMONY-4553: --------------------------------------- Assignee: Mikhail Fursov > [drlvm][jit][perf]String.compareTo method works slowly > ------------------------------------------------------ > > Key: HARMONY-4553 > URL: https://issues.apache.org/jira/browse/HARMONY-4553 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Vladimir Strigun > Assignee: Mikhail Fursov > Attachments: HARMONY-4553-v2.patch, HARMONY-4553-v2.patch, HARMONY-4553-v2.patch, HARMONY-4553-v2.patch, HARMONY-4553.patch > > > The test below shows that String.compareTo(String) method significantly slower in comparison win Sun. > Results of test execution: > java client: 1700 msec > java server: 0 > harmony server: 3360 msec > Small test: > public class CompareToTest{ > public static void main(String[] args){ > String st1 = new String("0 1 2 3 4 5 6 7 8 9"); > String st2 = new String("0 1 2 3 4 5 6 7 8 9"); > //warmup VM > stringCompareTo(st1, st2, 100000); > long start = System.currentTimeMillis(); > stringCompareTo(st1, st2, 20000000); > long end = System.currentTimeMillis() -start; > System.out.println("String compareTo for equals strings completed in "+end +" msec"); > st1 = new String("0 1 2 3 4 5 6 7 8 9abc"); > //warmup VM > stringCompareTo(st1, st2, 100000); > long start1 = System.currentTimeMillis(); > stringCompareTo(st1, st2, 20000000); > long end1 = System.currentTimeMillis() -start1; > System.out.println("String compareTo for non equals strings completed in "+end1 +" msec"); > System.out.println("Total in "+(end1+end) +" msec"); > } > public static void stringCompareTo(String st1, String st2, int num){ > for(int x=0; x st1.compareTo(st2); > } > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.