Closed Bug 1762743 Opened 2 years ago Closed 2 years ago

Twitch performance with high chat traffic is really poor

Categories

(Core :: Performance, defect, P1)

Firefox 98
defect

Tracking

()

RESOLVED WORKSFORME
Performance Impact high

People

(Reporter: alastair-h, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf:animation, perf:resource-use, perf:responsiveness)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0

Steps to reproduce:

Go to a Twitch streamer with a large amount of traffic and a fast moving chat, preferably a large amount of twitch emotes too.

https://share.firefox.dev/3NLsJG0

Actual results:

CPU and Memory peak almost instantly at nearly 100%, even causing stream to stutter.

Expected results:

Would expect better performance in line with both Chrome and Edge which barely do anything.

The Performance Priority Calculator has determined this bug's performance priority to be P1.

Impact on site: Causes noticeable jank (+2)
Affects macOS or Windows: Both (×4)
[x] Causes severe resource usage (+2)
[x] Affects animation smoothness (+1)
[x] Affects major website (×5)
[x] Multiple reporters (×1.5)

Blocks: twitch
Status: UNCONFIRMED → NEW
Performance Impact: --- → P1
Ever confirmed: true
Priority: -- → P1

Performance P1 should be S2 (at least).

Severity: -- → S2

Next action step: Find a Twitch channel which has a large volume of viewers / high chat volume occurring to measure against. Additonally, compare to Chrome

Assignee: nobody → fdoty
Attached image FF Chrome Compare.png

Tested by running Chrome and FF side by side in a single private window with no other open tabs or windows in either application. Results are of 10-20-30 minutes on a single stream of 64-71k viewers with a fast scrolling chat, mixed text and emoji.

Windows 10
Processor AMD Ryzen 7 5800X 8-Core Processor 3.80 GHz
Installed RAM 32.0 GB
System type 64-bit operating system, x64-based processor

Columns recorded are:
CPU - Memory - Disk - Network - GPU (shown only at 30minute mark)

Results linked in this image

Initial results show Firefox having less memory and GPU utilization than Chrome, but more CPU utilization.

Firefox memory utilization rose slightly (792MB -> 884MB), while CPU utilization rose from 6.1% to 19.2%.
Chrome memory utilization started higher but only rose slightly (977MB -> 1002MB), while CPU usage stayed low at 1.6% to 2.8%.
Chrome GPU usage was high at 14.7%, while Firefox GPU usage was 0%.

Next steps are unknown - a profile could be created after 30+ minutes of Twitch viewing to determine why CPU usage climbs over time. Looking for suggestions based on the data provided.

It was determined these tests were run with Fx hardware acceleration turned off - tests will be conducted once more with hardware acceleration turned on

Flags: needinfo?(fdoty)
Attached image FF Chrome Compare2.png

Tested again with Hardware Acceleration turned on. ~91k to ~93k viewers with fast scrolling chat and emoji. Generally, Firefox resource usage is higher on average than that of Chrome in CPU, Memory, and GPU.

Tested on the same hardware as previously posted.

Flags: needinfo?(fdoty)

unassigned for further review by team

Assignee: fdoty → nobody

:alastair-h Is this still an issue that you're still seeing? Are you able to reproduce with your current web extensions disabled? If you are still having an issue, would you mind creating a new profile? Thank you

Flags: needinfo?(alastair-h)

(In reply to Frank Doty [:fdoty] from comment #8)

:alastair-h Is this still an issue that you're still seeing? Are you able to reproduce with your current web extensions disabled? If you are still having an issue, would you mind creating a new profile? Thank you

Hi Frank,

I've had a go and while I couldn't find a streamer with a lot of emoticons going on (the normal streamer I watch that I had the problem with is on hiatus) I did have a go at a few of the top-viewed streams and didn't seems to have any stuttering or slow down as first reported despite the speedy chat. Saying that however, I have had a few cases of streams stuttering during normal playback over the last few months where the video will stall, chat will keep going and the video will eventually catch up again. Probably unrelated to this ticket and what was causing the stuttering before but it has been happening since 101.

I'll leave it up to you guys to decide what to do with this ticket.

Many thanks,
Alastair

Flags: needinfo?(alastair-h)

(In reply to alastair-h from comment #9)

(In reply to Frank Doty [:fdoty] from comment #8)

:alastair-h Is this still an issue that you're still seeing? Are you able to reproduce with your current web extensions disabled? If you are still having an issue, would you mind creating a new profile? Thank you

Hi Frank,

I've had a go and while I couldn't find a streamer with a lot of emoticons going on (the normal streamer I watch that I had the problem with is on hiatus) I did have a go at a few of the top-viewed streams and didn't seems to have any stuttering or slow down as first reported despite the speedy chat. Saying that however, I have had a few cases of streams stuttering during normal playback over the last few months where the video will stall, chat will keep going and the video will eventually catch up again. Probably unrelated to this ticket and what was causing the stuttering before but it has been happening since 101.

I'll leave it up to you guys to decide what to do with this ticket.

Many thanks,
Alastair

Thank you for the updated information Alastair - I'll be closing this particular ticket for now. If you continue to experience a separate issue, please open a new ticket for our review.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: