Closed Bug 1567135 Opened 6 years ago Closed 6 years ago

Gather FG and BG idle battery results for Chrome v72 on Android

Categories

(Testing :: Performance, task, P2)

Version 3
Unspecified
Android
task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alexandru.irimovici, Assigned: marauder)

Details

Run foreground and background idle battery tests against Chromev72 on Android.

The results should be compatible with the info from health dashboards: https://health.graphics/power?browser=geckoview&suite=speedometer&past=month

When it came to adding the Chrome v72 power results to the health.graphics dashboard, it was discovered that the method for gathering the results differs from the way our Raptor tests gather them. This means we don't have values for cpu/screen/wifi. Could we revisit this and gather some results that could be added to https://health.graphics/power?browser=geckoview&suite=scn-power-idle and https://health.graphics/power?browser=geckoview&suite=scn-power-idle-bg as a fixed point for comparison?

Flags: needinfo?(marian.raiciof)
Flags: needinfo?(gmierz2)
Priority: -- → P2
Summary: FG and BG idle battery tests against Crogmev72 on Android → Gather FG and BG idle battery results for Chrome v72 on Android

Hi Dave,

When i ran the tests for gathering the idle power results i did a sort of a hack job to modify some python files from
https://github.com/mozilla/powerusage-android

At that time, as i remember the power tests from raptor were not landed, I will check again and will run from there.

:marauder, the code for running the test has been updated to use the same methodology as raptor's power.py file and can be found here: https://github.com/mozilla/powerusage-android/tree/raptor_power

Running the same test as before would require something like the following now, --test-name, and --binary-name are required and the perfherder data is output to the console and stored as a JSON in the output folder: python3 tests/android_pre_post_general_test.py --testtime 5 --test-name testing-chrome --binary-name com.android.chrome --output /home/sparky/Documents/mozwork

Flags: needinfo?(gmierz2)
Assignee: nobody → marian.raiciof
Status: NEW → ASSIGNED

I finished the measurements and here are the files:
https://drive.google.com/drive/folders/1OoruoDks5MvGOul7j7xniCiy_eC5d0Gg?usp=sharing

Steps to gather the measurements:

For foreground tests:

  • open the required browser and leave it in foreground (i'll use refbrow here), then run the command:
    $ python3 tests/android_pre_post_general_test.py --testtime 5 --test-name "testing-refbrow" --binary-name "org.mozilla.reference.browser" --output ~/Desktop/cpu_memory_battery/fg_refbrow_1

For background tests:

  • open the required browser and press home on the mobile screen (i'll use refbrow here), then run the command:
    $ python3 tests/android_pre_post_general_test.py --testtime 5 --test-name "testing-refbrow" --binary-name "org.mozilla.reference.browser" --output ~/Desktop/cpu_memory_battery/bg_refbrow_1

For other browsers we have to change the binaries, test names, and output folder:
--test-name "testing-chrome" --binary-name "com.android.chrome"
--test-name "testing-gve" --binary-name "org.mozilla.geckoview_example"

Flags: needinfo?(marian.raiciof)
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.