4 ms·
Another fun fact is that CLR (well Mono) runs faster on Android then Java.
by _random_ 13y ago
Another fun fact is that CLR (well Mono) runs faster on Android then Java.
- Zigurd 13y agoBe careful of those comparisons. I expect a port of Hotspot to ARM would beat the snot out of Dalvik on any synthetic benchmark. It would also use up your battery doing it. Dalvik was designed for small battery powered devices from the beginning. In early versions of Android the advantage it held over Java VMs is that Dalvik bytecode is (claimed to be) half as big and twice as fast to interpret compared to Java bytecode. A useful comparison would have to, at least, take into account battery efficiency, if not space efficiency, how much you can get away without using native code, etc. Then there are issues of how the VM is used. The CLR in Windows Phone is, AFAIK, not used for a middleware layer the way it is in Android. That is, a lot of the Android APIs are implemented in Java and run in a Dalvik VM instance.