Documentation
¶
Overview ¶
The driver of the 2D comparison on the Android emulator (../android.sh builds the APKs and runs it): it starts the emulator of the device tests (internal/androidtest: the AVD glutter-37 in .android-test, ANGLE over SwiftShader), and runs each scene of each APK in turn, once for each renderer of RENDERERS (vulkan,gles by default), and prints the RESULT line that the app logs after the app's name with the renderer and the scene, as ../run.sh does, so that ../summary.py takes its output. Run it from the root of the repository:
go run ./benchmarks/ui/android <runs> <secs> <name>=<apk>...
Every APK is the Glutter app of the comparison, whose application ID is org.glutter.glutter (APPID changes it); one is installed over the other when the next runs. SCENES chooses the scenes (cells,scroll,static by default), EXTRAS more variables of the app (GLUTTER_FRAME_STATS=1,...), and LOGDIR a folder for the app's log of each run. The CPU time and the memory are those of the app's process, from /proc, as on Linux. The emulator is stopped at the end.