Firefox OS/Performance/Automation/Launch Latency

From MozillaWiki
Jump to: navigation, search

Launch Latency

Summary

Measures elapsed time from the first launch of an application to a series of defined startup events.

Usage

Test Cases

Launch each of the following apps from a cold state:

  • Browser
  • Calendar
  • Camera
  • Clock
  • Contacts
  • Dialer
  • Email
  • FM Radio
  • Gallery
  • Marketplace
  • Music
  • Settings
  • SMS
  • Template
  • Usage
  • Video

For each app, report the time elapsed to the following events:

  • moz-chrome-dom-loaded
  • moz-chrome-interactive
  • moz-app-visually-complete
  • moz-content-interative
  • moz-app-loaded

Precision

TBD

How to Run On-Demand

TBD

Published Results

FxOS 2.0

Flame
startup_>_moz-chrome-dom-loaded Datazilla
startup_>_moz-chrome-interactive Datazilla
startup_>_moz-app-visually-complete Datazilla
startup_>_moz-content-interative Datazilla
startup_>_moz-app-loaded Datazilla

FxOS 2.1

Flame
startup_>_moz-chrome-dom-loaded Datazilla
startup_>_moz-chrome-interactive Datazilla
startup_>_moz-app-visually-complete Datazilla
startup_>_moz-content-interative Datazilla
startup_>_moz-app-loaded Datazilla

References

Development

Design

Common Setup

  1. Set up workload
  2. Restart B2G process

All Cases

  1. Invoke launch programmatically
  2. Inject the Performance Helper and save start time
  3. App instrumentation throws timeline events at appropriate times
  4. Performance helper observes events
  5. Event emit times are compared with start time for time elapsed

Results

  • Result is time elapsed to each event
  • Execute test 30 times, for each event report mean, median, deviation

Project Roadmap

  • Lead: Eli Perelman
  • Tracking Bug: TBD
Milestone 1: Design
Test Design Validity Review
All Cases Bug Bug
Milestone 2: Test Milestone 3: Publication
Availability Instrumentation Workload On-Demand Test Results Review Published Results Documentation
Browser TBD bug 837668 Bug Bug Bug Bug Bug
Calendar TBD bug 837671 Bug Bug Bug Bug Bug
Camera TBD bug 1015385 N/A Bug Bug Bug Bug
Clock TBD bug 837668 N/A Bug Bug Bug Bug
Contacts TBD bug 1015388 Light Bug Bug Bug Bug
Dialer TBD bug 837668 Light Bug Bug Bug Bug
Email TBD bug 837677 Bug Bug Bug Bug Bug
FM Radio TBD bug 1015412 N/A Bug Bug Bug Bug
Gallery TBD bug 837674 Light Bug Bug Bug Bug
Marketplace TBD bug 837668 Bug Bug Bug Bug Bug
Music TBD bug 837675 Light Bug Bug Bug Bug
Settings TBD bug 1015405 N/A Bug Bug Bug Bug
SMS TBD bug 1015390 Light Bug Bug Bug Bug
Template TBD bug 1015391 N/A Bug Bug Bug Bug
Usage TBD bug 837678 N/A Bug Bug Bug Bug
Video TBD bug 837658 Light Bug Bug Bug Bug

template