Making Web Applications More Energy Efficient for OLED Smartphones
Ding Li, Angelica Huyen Tran, William G.J. Halfond University of Southern California
Work supported by NSF Grant CCF-1321141
Making Web Applications More Energy Efficient for OLED Smartphones - - PowerPoint PPT Presentation
Making Web Applications More Energy Efficient for OLED Smartphones Ding Li, Angelica Huyen Tran, William G.J. Halfond University of Southern California Work supported by NSF Grant CCF-1321141 Motivation Energy is a critical resource for
Work supported by NSF Grant CCF-1321141
2
3
High display energy Low display energy
4
5
6
8
9
<body bgcolor="white“ style="color:black"> <table><tr> <td>hi</td> <td style="background-color:red; color:yellow;">ha</td> <td style="background-color:green; color:blue;">usc</td> </tr></table> </body>
10
<body> <td> <tr> <table> <td> <td>
<body bgcolor="white“ style="color:black"> <table><tr> <td>hi</td> <td style="background-color:red; color:yellow;">ha</td> <td style="background-color:green; color:blue;">usc</td> </tr></table> </body>
11
white green red a a b
12
13
<body> <td> <tr> <table> <td> <td> white green red a a b
white
red
1. Let 𝑇 = 𝐷0, 𝐷1, 𝐷2, … , 𝐷𝑙 nodes of the CCG 2. Let 𝑇′ be the new coloring, where 𝐷0 =black 3. Compute 𝑇′ that results in similar color differences as in 𝑇, i.e. minimize: 𝑥𝑗𝑘 𝐸𝑗𝑡𝑢 𝐷𝑗, 𝐷
𝑘 − 𝐸𝑗𝑡𝑢(𝐷𝑗′, 𝐷 𝑘′) 𝑙 𝑘=0 𝑙 𝑗=0
4. Optimization problem is NP-Hard, use simulated annealing to approximate optimal solution
14
15
16
Name Framework SLOC Bookstore JSP 24,305 Portal JSP 21,393 JavaLibrary JSP & Servlet 73,468 ClassRoom JSP 5,127 Roller JSP & Struts 154,065 Scarab Velocity & Turbine 145,435 jForum Velocity 31,841
17
20 40 60 80 100 120 140 160 180
Seconds
Rewrite Transform Analyze Load
All less than three minutes.
18
10 20 30 40 50 60 Percent Reduction Loading Energy Display Power
19
20
energy, at what battery level would you choose to use it? a) Always – regardless of battery level b) Most of the time c) Only when the battery level is low d) Only when the battery level is critical e) Never
21
1 2 3 4 5 6 7 8 Bookstore Portal JavaLibrary ClassRoom Roller Scarab jForum
Attractiveness
Original Transformed
1 2 3 4 5 6 7 8 Bookstore Portal JavaLibrary ClassRoom Roller Scarab jForum
Readability
Original Transformed
Average decrease of 17% Average decrease of 15%
22
23
24
25
26
– Distribution was bi-modal based on framework
27