FORUMS
Remove All Ads from XDA

 View Poll Results: Which runtime do you using?

Dalvik
 
38 Vote(s)
44.19%
ART
 
48 Vote(s)
55.81%

ART vs. DALVIK (4.4.2 KitKat)

294 posts
Thanks Meter: 92
 
By 2hipso, Senior Member on 9th January 2014, 04:11 AM
Post Reply Email Thread
Hi guys, because I can't sleep, I dedicated to perform battery tests of Dalvik runtime and ART runtime to see which one is eating battery more.
I tried to do both tests the same to get the most relevant result:



TEST 1: Playing video while on airplane mode.

Results after TEST 1:
Battery on DALVIK (tested first) went from 100% to 97%, on ART (tested second) went from 100% to 97%.


TEST 1 standings:
DALVIK (100 + 97) = 197 points
ART (100 + 97) = 197 points

--------------------------------------------------------------------------------------------------------------------


TEST 2: (Now on full-brightness) Started the game for 10 minutes and then playing video while on airplane mode.

Results after TEST 2:
Battery on ART (tested first) went from 100% to 92%, on DALVIK (tested second) battery also went from 100% to 92%.

TEST 2 standings:
DALVIK (100 + 92) = 192 points
ART (100 + 92) = 192 points


TOTAL:
DALVIK = 389 points
ART = 389 points


More points = less battery usage, so it's tied !

also it seems like, with Dalvik, the screen uses more battery. Check screenshots

NOTE: Each test ran for exactly the same conditions (same battery status, same light conditions etc.)
NOTE 2: Results on your device and with your battery may vary.
Attached Thumbnails
Click image for larger version

Name:	1 test - art.png
Views:	2941
Size:	93.5 KB
ID:	2503621   Click image for larger version

Name:	1 test - dalvik.png
Views:	2629
Size:	95.7 KB
ID:	2503622   Click image for larger version

Name:	2 test - art.png
Views:	2477
Size:	98.8 KB
ID:	2503623   Click image for larger version

Name:	2 test - dalvik.png
Views:	2282
Size:	103.9 KB
ID:	2503624  
The Following 5 Users Say Thank You to 2hipso For This Useful Post: [ View ] Gift 2hipso Ad-Free
 
 
9th January 2014, 10:00 AM |#2  
Cimi86's Avatar
Member
Flag London
Thanks Meter: 63
 
More
I think you should run tests at minimum brightness... otherwise all the battery drain will come from the LCD on
9th January 2014, 11:49 AM |#3  
Senior Member
Thanks Meter: 23
 
More
The Improvement from Dalvik to Art mostly affects the starting process.
Instead of a compilation on every start, its only done once.

While Running I do not expect any battery improvements
9th January 2014, 12:01 PM |#4  
debaj's Avatar
Senior Member
Flag Budapest
Thanks Meter: 173
 
More
The battery consumption of the screen comes mainly from the backlight. Changing the runtime will not affect this in any way.
9th January 2014, 12:31 PM |#5  
Senior Member
Thanks Meter: 145
 
More
Quote:
Originally Posted by MrKra

The Improvement from Dalvik to Art mostly affects the starting process.
Instead of a compilation on every start, its only done once.

While Running I do not expect any battery improvements

Exactly right.

ART v Dalvik makes zero difference when playing a video or once an app has started.

No offence to OP but its worth gaining an understanding of ART before running tests as can be seen from your results

Also I would assume any app running or cached is therefore already in memory so its only apps NOT running/cached that benefit from ART when they first start.

I have heard people say ART means less lag when scrolling - how on earth would it do that!!
The Following 4 Users Say Thank You to scott_doyland For This Useful Post: [ View ] Gift scott_doyland Ad-Free
9th January 2014, 01:31 PM |#6  
Senior Member
Thanks Meter: 23
 
More
Art is interesting for Low mem devices, which do not hold Apps in the RAM.
9th January 2014, 01:52 PM |#7  
Senior Member
Thanks Meter: 145
 
More
Quote:
Originally Posted by MrKra

Art is interesting for Low mem devices, which do not hold Apps in the RAM.

Yes, true. I guess a lot of people have just a handful of apps they use a lot though, and its more than likely, especially with RAM increasing on devices, that these few often used apps will always be in RAM already. Depends how the app is coded as well I guess.

I can see it may help for large apps, ie games, where a portion of the game is in RAM and as you progress in the game the next portion has to be loaded. It will make loading times quicker.

With the current speed of devices and the large RAM now available (and look to one or two years ahead and 1GB will be considered low) I wonder how much difference ART will really make especially to just the average user - I bet they wouldnt even notice. We may be able to see statistics telling us an app loads a few milliseconds quicker but in the real world how much difference will this make.

However Im in no way saying ART is not worth having, if it does save just a tiny bit of battery its maybe worth it as we all want our phone to last longer. Its just not as big a deal as some people seem to make out - in my opinion.
9th January 2014, 04:46 PM |#8  
2hipso's Avatar
OP Senior Member
Flag Slovakia, Žilina
Thanks Meter: 92
 
More
That test was because lot of people saying that battery has improved with ART.

I noticed that ART was little faster while loading the game (~0,5 sec) also when video comes in the end, Dalvik has little delay to show me the software buttons.

Sent from my XT1032 using xda app-developers app
11th January 2014, 08:36 AM |#9  
Senior Member
Flag Teesside
Thanks Meter: 237
 
More
I just tried it, couldn't feel much difference in speed, did see I chuck off my valuable 8gb of memory vanish. So I changed back!
11th January 2014, 07:36 PM |#10  
Member
Flag Berlin
Thanks Meter: 2
 
More
switched nearly immediately to ART after updating to KitKat, but what I really noticed to speed up was the recent apps drawer. Scrolling through windows was definitely faster. Only real downside for me is the ~10% greater storage demand... For my understanding using precompiled binaries kinda makes sense, but there are lots of really proficient threads here on the matter and most of them conclude that ART is the future.
14th January 2014, 10:26 AM |#11  
Senior Member
Thanks Meter: 51
 
More
ART isn't an option for me yet, still like using xposed framework to much. Hopefully they will update that to ART sometime.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes