Closed Bug 1487359 Opened 6 years ago Closed 6 years ago

Add a DAMP test for typing in JsTerm

Categories

(DevTools :: Console, enhancement, P1)

enhancement

Tracking

(firefox64 fixed)

RESOLVED FIXED
Firefox 64
Tracking Status
firefox64 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

Typing in the console input revealed to be quite slow lately due to slow reflows.
Having a damp test would help us keep track of this metric and make sure we are improving this (and making sure we stay fast in the future).
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: -- → P1
Here we are simulating a user typing a few letters in
the console input, when the console output has 500 messages.
We wait between each 'keystroke' in order to have a
realistic measure. Also, we are typing a string that is
triggering the popup  as it also impacts typing performance.
So I tried a few thing with the test: 
 1 - subtracting the time waiting (200ms for each key stroke) at the end of the test. That sounds good and something we could apply right away. Also it would better conveys what the results means (going from 2000ms to 1500ms does not report the same improvement as going from 1000ms (2000ms - delay time) to 500ms ).
 2 - not ending with a "." to not trigger the popup in the end. This seems legit and doesn't seems to affect the test stability.
 3 - setting the flex elements in the console to "block" to basically remove our reflow issue. The test then still reports taking ~100ms (still with 5 chars being typed) , which I think is sensitive enough to report future variations.
 4 - lowering the time we wait for between key strokes: This causes some issues. If we don't wait enough, we are sometimes showing the popup, sometimes not, and the test results tend to vary more because of that. I think it's still fine if we wait 200ms between each key stroke (if we go with what I did in 1. , I think it's fine).

Here's a comparison without and with the test: https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=b93a664dd349676f4d44af739a33a282d1851a77&newProject=try&newRevision=a1c4b7e0c766b2213cef1fa1b8cbd0f965f61632&framework=1

I don't think the other tests suffer from this new addition.
okay, this time I managed to get the test to not impact other tests by clearing the output at the end of the test.
Comment on attachment 9005157 [details]
Bug 1487359 - Add a DAMP test for typing in the console input; r=ochameau.

Alexandre Poirot [:ochameau] PTO back on 17th has approved the revision.
Attachment #9005157 - Flags: review+
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/549c61f38514
Add a DAMP test for typing in the console input; r=ochameau.
https://hg.mozilla.org/mozilla-central/rev/549c61f38514
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: