This post has moved to eklausmeier.goip.de/blog/2013/12-30-performance-of-dalvik-versus-native-c-compilation.
Android application programs are usually written in the Java programming language. Java source code is compiled to bytecode, which is then interpreted by the Java virtual machine. Current virtual machines (VM for short) use two tricks to improve performance:
- compile bytecode to machine code during run-time (JIT: just-in-time compilation)
- optimize machine code according usage pattern (hotspot technology)
Despite all these tricks native code produced by C/C++ compilers is ways faster than JIT/hotspot, see for example shootout from 2008, or see The Computer Language Benchmarks Game.
You must be logged in to post a comment.