Closed Bug 938644 Opened 11 years ago Closed 7 years ago

Add web latency benchmark to talos

Categories

(Testing :: Talos, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: wlach, Unassigned)

References

Details

(Keywords: ateam-talos-big)

Attachments

(1 file, 3 obsolete files)

Google's web latency benchmark looks really useful, measuring jank while performing a number of common browser operations:

http://google.github.io/latency-benchmark/
https://github.com/google/latency-benchmark

(the latter link describes how it works)

IMO we should consider making Talos run these tests. It appears that the test requires a small amount of platform-specific compiled code to work, so this wouldn't be 100% trivial to deploy, but it does seem to provide a headless (i.e. scalable) way of measuring latency and jank on the desktop -- which we really haven't had success in doing up to this point (we had written peptest in the past, but it didn't seem to be successful in providing reproducible or actionable data).
I filed bug 935680 with a very similar idea
Looks like this benchmark may fit the bill.
this requires a forked version of latency-benchmark:
https://github.com/jmaher/latency-benchmark

obviously some more work to be done, but we are getting closer.  I will probably just keep a collection of binaries in talos and we can reference them.  Open to other suggestions.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Updates to allow for posting from the latency-benchmark tool as updated in my recent push:
https://github.com/jmaher/latency-benchmark

Once those changes are upstreamed, we can work on landing talos changes as needed to make this work.
Attachment #8339516 - Attachment is obsolete: true
will update this for review once I have tested this in various configurations and ensure stability in the numbers.
Attachment #8341269 - Attachment is obsolete: true
Depends on: 964906
Depends on: 964932
Tried the patch from comment 5 locally on OS X 10.9.1 on a 2010 MBA. Some issues I noticed:

1. On first run, the OS pops a firewall dialog, asking if "latency-benchmark" is allowed to accept incoming connections. Until this dialog is released, the test is hanged. Confirming the dialog once prevented it from popping up the next time I tried. Not sure what will happen if the binary changes.

2. Running from console, the Firefox window didn't appear on top, but rather behind the console window. The test failed.

3. Even if I minimized the console right after issueing the talos cli, long time before the Firefox window spawned, the Firefox window still wasn't focused when it showed, so it couldn't accept KB events which are part of the test, and the test failed.

4. I clicked the Firefox window as soon as it showed, so it got focus and the test ran and completed successfully (the browser window displayed all the 6 tests results)
. However, the console (talos) didn't display any results, and did display this message: "ERROR : need more than 2 values to unpack".
Depends on: 966272
The toolchain for latency-benchmark is setup to build linux64, would we want this on linux32 and linux64?  I ask as it will take a bit of work to get this compiled to 32 bit (some library dependencies) and we would need an additional binary.  I am just trying to prioritize work items.
Depends on: 977190
Depends on: 979353
updated patch to apply to latest talos along with updated linux binary.  The linux binary works on 32 bit and doesn't have oculus.  Unfortunately this doesn't work on try server for linux, I suspect one of the tests are failing.
Attachment #8363830 - Attachment is obsolete: true
Depends on: 979919
Depends on: 981095
Depends on: 969168
No longer depends on: 969168
Depends on: 982748
Depends on: 984944
Blocks: 1040081
closing out old bugs that haven't been a priority
Assignee: jmaher → nobody
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: