On 11/8/07, Aleksey Shipilev <[EMAIL PROTECTED]> wrote: > > In short, LightJNI brings another 5% of boost, but Harmony is still > 300% slower than Sun 1.6 on sqrt() microtest. > > That's probably due to presence of call. There are really have two > directions where to go: > a. inline hot native methods into JITted code (sic!) :)
Well, it's not something impossible. Probably we'll have such capability some time. :) b. implement hot native methods as magics After experimenting with LightJNI I agree that API magics is the right way to go for sqrt. Thanks, Pavel Details: > > == Harmony-r589548 (clean) > ======================================================== > Dacapo:lusearch: 2900 msecs > > Warmup finished: 4.527292719905836E10 > Math Result = 2.1081849486439312E10 in 12344ms > StrictMath Result = 2.1081849486439312E10 in 12109ms > > > == Harmony-r589548 (+ LightJNI) > ===================================================== > Dacapo:lusearch: 2900 msecs > > Warmup finished: 4.527292719905836E10 > Math Result = 2.1081849486439312E10 in 12078ms > StrictMath Result = 2.1081849486439312E10 in 11921ms > > > == Harmony-r589548 (+ intrinsic in native code) > =========================================== > Dacapo:lusearch: 2200 msecs > > Warmup finished: 4.527292719913238E10 > Math Result = 2.1081849486508232E10 in 4140ms > StrictMath Result = 2.1081849486439312E10 in 12172ms > > > == Harmony-r589548 (+ intrinsic in native code + LightJNI) > =================================== > Dacapo:lusearch: 2100 msecs > > Warmup finished: 4.527292719913238E10 > Math Result = 2.1081849486508232E10 in 3904 ms > StrictMath Result = 2.1081849486439312E10 in 12047ms > > > Thanks, > Aleksey. > ESSD, Intel. > > On Nov 7, 2007 7:34 PM, Yuri Kashnikoff <[EMAIL PROTECTED]> wrote: > > > 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). >
