21
February
2024
Optimizing Mozilla FireFox Performance - Part 2
12:18

Optimizing Mozilla FireFox Performance - Part 2

21 February 2024 12:18

This article is devoted to optimizing the display of tickers in the Mozilla Firefox web browser.

(For beginning: see part 1).

Tickers

On sites with stock exchange news, a creeping line is used with quotes for exchange rates and various assets - securities, gold. At the same time, on the one hand, the load on the processor increases, on the other hand, the browser is required to operate the “creeping line” as smoothly as possible.
"kazam")

Here I tested various FireFox settings in about:config for sites with stock quotes or news tickers.

To save processor resources, the principle of regulating the load on the central processor is used using software Throttling - idle rest cycles in the application, which are added between working operations. The purpose of this is to reduce the load on the processor. At the same time, it is necessary to maintain maximum smoothness in the reproduction of moving text objects: exchange rates and stock quotes.

Study

Testing conditions are on the website rbc.ru. Using mouse scrolling, I achieved the appearance of two creeping lines, then fixed the established value %Cpu(s).
quote_screen

The numbers on the right are the CPU load (%) in the top program (on the second monitor)- %Cpu(s).

dom.timeout.throttling_delay
1 - 59
5 - 58
10 - 56
20 - 56
40 - 54
60 - 54
80 - 55
99 - 55
1000 - 56
30000 - 55
optimal value: dom.timeout.throttling_delay - 40

dom.timeout.foreground_throttling_max_budget
(при dom.timeout.throttling_delay = 40)
-1 - 53
100 - 51-54
1000 - 53-55
optimal value: dom.timeout.foreground_throttling_max_budget -1 (default)

dom.timeout.budget_throttling_max_delay
-1 - 58-60
0 - 54
1 - 54-56
50 - 55-58
80 - 55-57
100 - 52-54
130 - 53-56
200 - 59-60
optimal value: dom.timeout.budget_throttling_max_delay 0 (for smooth movement of the ticker)

layout.throttled_frame_rate
1 - 53
2 - 56
8 - 55
optimal value: 1 (default)

dom.animations.offscreen-throttling
false - 56
true - 53
optimal value: true (default)

media.throttle-factor
1 - 58
2 - 53
4 - 54
10 - 54
20 - 55
optimal value: 2 (default)

Conclusion

Optimal values for throttling parameters in Mozilla FireFox (for playing tickers)

Parameter Default New value
dom.timeout.throttling_delay 30000 40
dom.timeout.budget_throttling_max_delay -1 0


Related publications