[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-02-01 Thread guich
Just following up to my initial post, I have implemented the above look in native code using Android's SDK.  The native code performs in a few milliseconds as hoped.  This goes to confirm that for compute intensive tasks, Dalvik can be hundreds of times slower than native. Hi, Can you

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-12 Thread Ecthelion
The Android 2.1 SDK is out, but - at least from a first test on the emulator that comes with the SDK - it does not look like the Dalvik JIT has been activated :-(. On 7 Jan., 17:55, Biosopher biosop...@gmail.com wrote: The Dalvik JIT appears to result in a 1.7x improvement when run on an armv7.

Re: [android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-12 Thread Sena Gbeckor-Kove
I was under the impression that was coming with Flan. 2.1 is still Eclair. S --- Sena Gbeckor-Kove CTO/Founder - imKon UK : +44 7788 146652 NL : +31 62 434 1290 s...@imkon.com|www.imkon.com Asia (Singapore) : 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore,

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-12 Thread fadden
On Jan 7, 9:06 am, Biosopher biosop...@gmail.com wrote: Just following up to my initial post, I have implemented the above look in native code using Android's SDK.  The native code performs in a few milliseconds as hoped.  This goes to confirm that for compute intensive tasks, Dalvik can be

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-12 Thread fadden
On Jan 7, 8:55 am, Biosopher biosop...@gmail.com wrote: The Dalvik JIT appears to result in a 1.7x improvement when run on an armv7. That's a stale prototype. Quoting from the link you included, an old snapshot of what we consider a promising proof-of-concept. The Android team's independent

Re: [android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-12 Thread Sena Gbeckor-Kove
So, any news of the official Android version? Cheers S --- Sena Gbeckor-Kove CTO/Founder - imKon UK : +44 7788 146652 NL : +31 62 434 1290 s...@imkon.com|www.imkon.com Asia (Singapore) : 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore Europe

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Biosopher
The Dalvik JIT appears to result in a 1.7x improvement when run on an armv7. Here's the post from the Android team: http://groups.google.com/group/android-platform/browse_thread/thread/331d5f5636f5f532/dee6e0a81ae72264?#dee6e0a81ae72264 The Android team's independent benchmark results are here

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Biosopher
Hi dm1973, Actually these tests are not useless. Of course good modern compilers should optimize away the code above. The reality is that the Android compiler is not a good compiler so it does not optimize the above code. This allows the simple example above to show the performance limitations

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Biosopher
Just following up to my initial post, I have implemented the above look in native code using Android's SDK. The native code performs in a few milliseconds as hoped. This goes to confirm that for compute intensive tasks, Dalvik can be hundreds of times slower than native. -- You received this

Re: [android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Dianne Hackborn
Fyi, there is no Dalvik or Android compiler; the Java code is just compiled with the regular javac. On Thu, Jan 7, 2010 at 9:03 AM, Biosopher biosop...@gmail.com wrote: Hi dm1973, Actually these tests are not useless. Of course good modern compilers should optimize away the code above. The

Re: [android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-07 Thread Sena Gbeckor-Kove
Flan not 2.1 which is still Eclair. S --- Sena Gbeckor-Kove CTO/Founder - imKon UK : +44 7788 146652 NL : +31 62 434 1290 s...@imkon.com|www.imkon.com Asia (Singapore) : 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore Europe (London) : 145-157 St

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-06 Thread niko20
You'll have to use the NDK and write some native C code to do your math, that will speed it up a lot. And use fixed point if you need floats. -niko On Jan 6, 11:08 am, Biosopher biosop...@gmail.com wrote: I'm writing a processing intensive digital sound processing app (requires numerous

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-06 Thread Biosopher
Thanks Niko, I've been researching the NDK and am about to run the same performance tests there as well. I really didn't want to add the additional complexity of the NDK but seems that might be the only solution. I found a blog documenting the same performance issues so it appears my own

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-06 Thread Fred Grott(Android Expert, http://mobilebytes.wordpress.com)
the next sdk release is suppose to have a Dalvik JIT i nit doubling speed/performance.. I am in the same boat, have image processing projects but am holding off until JIT is out.. On Jan 6, 11:49 am, niko20 nikolatesl...@yahoo.com wrote: You'll have to use the NDK and write some native C code

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-06 Thread Ecthelion
Do you have any references for the statement below? And does next sdk release refer to the Android 2.1 SDK? Thanks On 6 Jan., 19:49, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: the next sdk release is suppose to have a Dalvik JIT i nit doubling

[android-developers] Re: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-01-06 Thread dm1973
Your tests are pretty useless. Most modern compilers will optimize away all of that code so what you are measuring is the overhead of your timing code. That being said interpreted byte code is slow. Either write native code where it matters or wait for JIT. On Jan 6, 9:08 am, Biosopher