Upgrading from Dalvik to ART and back on a Nexus 5

Upgrade times for switching from Dalvik to ART or ART to Dalvik on a Nexus 5

Which is the upgrade?

In my other article, I showed results of running benchmarks on a Nexus 5 with both Dalvik and ART runtimes.  Currently, some apps run faster on one or the other runtimes, and many run at about the same speed.  However, when you switch from one runtime to the other, each time there’s a message that Android is “Upgrading”.  Shouldn’t one of them be “Downgrading”?  Either runtime works fine, although ART has some problems running some apps.  Google will fix all of these little problems before releasing ART to the general public.  For now, ART is for developers.

How long does it take to upgrade from Dalvik to ART?

I had 158 apps on my phone, and the process took 12 minutes 21 seconds to optimize them for ART.  Here’s a video:

How long does it take to upgrade from ART to Dalvik?

After running my comparison benchmarks, I had planned to stay with the ART runtime.  However, my SlingPlayer app wouldn’t connect to my Slingbox using ART, so I switched back upgraded to Dalvik.

I had 160 apps on my phone, and the process took 2 minutes 3 seconds to optimize them for Dalvik.  Here’s a video:

 

Which has the 20x speed-up?

Neither of the runtimes is 20 times faster than the other.  To keep the videos to a reasonable length, I sped up (fast forwarded) the upgrade part at 20 times the normal speed.  If you look at my wristwatch in the second video, you’ll see what I mean.


Leave a Reply

Your email address will not be published. Required fields are marked *

Anti-Spam Quiz: