A quick check shows that lots of time is spent in sqrt() computation:
hyluni.dll!___ieee754_sqrt() + 0x1f3 C
hyluni.dll!_fdlibm_sqrt() + 0x11 C
hyluni.dll!internal_sqrt(double arg1=1528.7960683139602) Line 301 + 0xe C
hyluni.dll!Java_java_lang_Math_sqrt(const JNINativeInterface_ * *
env=0x0206aaa0, _jobject * jclazz=0x0013f5b0, double
arg1=1528.7960683139602) Line 596 + 0xe C
0345c1b2()
Thanks,
xiaofeng
On 11/5/07, Tim Ellison wrote:
> Xiao-Feng Li wrote:
> > Interesting. I believe Harmony has some obvious reason for the NBody's
> > performance. DRLVM developers will have an analysis immediately.
>
> Beyond a load of floating point operations in simple loops, it does
> invoke java.text.NumberFormat. If I have time I'll put a profiler on it
> tomorrow.
>
> Regards,
> Tim
>
>
--
http://xiao-feng.blogspot.com