Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 77495 invoked from network); 7 Nov 2007 16:34:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2007 16:34:44 -0000 Received: (qmail 37412 invoked by uid 500); 7 Nov 2007 16:34:27 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 37388 invoked by uid 500); 7 Nov 2007 16:34:26 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 37368 invoked by uid 99); 7 Nov 2007 16:34:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 08:34:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuri.kashnikoff@gmail.com designates 209.85.198.186 as permitted sender) Received: from [209.85.198.186] (HELO rv-out-0910.google.com) (209.85.198.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 16:34:30 +0000 Received: by rv-out-0910.google.com with SMTP id k20so2078916rvb for ; Wed, 07 Nov 2007 08:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+QJHjIMPLdKQ+rIBHB4yM9/wnrHudApkn6f4LlZkl3o=; b=L9O/71h3qZbnkjVvA5yYwVOCE8sJeHK9YpOolNugFri/DNiEW0df18Lwew493Vxo35QcvVhF4DJ9RAWaBEbAj2b4SecoOTveZM9oz4nVLcRD3yuXklDfyKsOhfz7ctvYQduV8ZGQABjx8NxfIObVWGvIW685y/g45H8PVUvtuRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gvQrQIBDRYhDmhsoGf1PwcqJBlv/5hSzVM5ZspxZpCc7UCO6LVew07YlKb3HFBXcXtYIHR9t4Wr8Tavdwn4MUMzFTZqMATJcaBRbWQkSq6MCJRPq39ORkQ6TzWnz/A3muFWG0NrQHXGSvm80G0XKYqsULebe1betatffWISzVYk= Received: by 10.141.122.20 with SMTP id z20mr3627777rvm.1194453249467; Wed, 07 Nov 2007 08:34:09 -0800 (PST) Received: by 10.141.186.6 with HTTP; Wed, 7 Nov 2007 08:34:09 -0800 (PST) Message-ID: Date: Wed, 7 Nov 2007 22:34:09 +0600 From: "Yuri Kashnikoff" To: dev@harmony.apache.org Subject: Re: [perf] Comparative benchmarking In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <472C548F.6030609@gmail.com> <473068D4.8030901@gmail.com> <4bebff790711060603h62efddf0p85ccebccffae6e92@mail.gmail.com> <0vqejf3gzke.fsf@gmail.com> <0vqabprgj42.fsf@gmail.com> <4bebff790711061402v78140d33h21f4123a6eb7147f@mail.gmail.com> <4730F424.8080107@anu.edu.au> <9623c9a50711061846q49e10762t481926aeee428fed@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org > Yuri Kashnikoff did this patch and I hope we will commit it before M4. > Yuri, can you share your patch with us? Yes, Mikhail. LightJNI available by https://issues.apache.org/jira/browse/HARMONY-5084. All information about LightJNI provided(just use the link). > > On Nov 7, 2007 5:46 AM, Xiao-Feng Li wrote: > > > > On Nov 7, 2007 7:09 AM, Robin Garner wrote: > > > > > > Aleksey Shipilev wrote: > > > > On 07 Nov 2007 00:27:25 +0300, Egor Pasko wrote: > > > > > > > >> Vladimir, guess what? :) I actually mixed several things > > > >> altogether. > > > >> > > > > (sigh) As usual, miracle does not happen :) I dreamed to see > > > > software sqrt() implementation that could be faster than hardware one. > > > > > > > > > > > > > > > >> So, we are left with SSE asm that can be inlined by JIT and AFAI can > > > >> see it is not as fast as HotSpot? Weird :) > > > >> > > > > No, for now we have just the intrinsic in native code, so we also have > > > > overheads for JNI transition (and it is heavy!), parameter passing, > > > > chains of calls, etc. I believe that sqrt() magic will lead that NBody > > > > performance very close to RI. > > > > > > > > BTW, in my thought this benchmark is like the top of the iceberg > > > > called "FP performance problems". > > > > > > > > Thanks, > > > > Aleksey. > > > > > > > You might be interested to know that the JikesRVM implementation calls > > > out to glibc via a fast syscall (we have an @SysCall annotation for > > > native methods), and it is 1.5x slower than Sun 1.6 on a Core2/Linux for > > > Tim's (non-strict) benchmark. Maybe you can squeeze the overhead of > > > intrinsic calls down a bit further ? > > > > I am also wondering why not to leverage the system support directly. > > This solution is by default portable. :-) > > > > > cheers > > > > > > cheers > > > > > > > > > > > > > -- > > http://xiao-feng.blogspot.com > > > > > > -- > Mikhail Fursov > -- Yuri S. Kashnikov Novosibirsk State University, Russia 2 Pirogova street 630090, Novosibirsk-90 yuri.kashnikoff@gmail.com