mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Use thorium with heavy throttling
Now that css containment has dramatically improved large-page performance, I can crank up the chromium throttling during lighthouse runs to ensure no perf regressions.
This commit is contained in:
parent
e1e998fd25
commit
aded765539
1 changed files with 3 additions and 3 deletions
|
@ -7,14 +7,14 @@ SCHEME=https://
|
|||
URL ?= $(SCHEME)$(DOMAIN)$(PAGE_PATH)
|
||||
# latest bleeding-edge chromium snapshot
|
||||
CHROME_DIR = /home/rkumar/Downloads/gitclone/chromium/thorium/latest
|
||||
CHROME_PATH = $(CHROME_DIR)/chrome
|
||||
CHROME_PATH = $(CHROME_DIR)/thorium
|
||||
CHROMEDRIVER_PATH = $(CHROME_DIR)/chromedriver
|
||||
CHROME_PROFILE ?= /tmp/chrome-lighthouse
|
||||
JS_FLAGS=''
|
||||
CHROME_FLAGS += --disable-extensions --no-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --no-first-run --disable-background-networking --user-data-dir=$(CHROME_PROFILE) --enable-quic --start-in-incognito --origin-to-force-quic-on=$(DOMAIN):443
|
||||
CHROME_FLAGS_COMMA = 'disable-extensions,no-default-browser-check,disable-client-side-phishing-detection,disable-component-update,disable-default-apps,disable-device-discovery-notifications,disable-domain-reliability,disable-background-timer-throttling,disable-breakpad,no-first-run,disable-background-networking,js-flags=--jitless'
|
||||
CPU_SLOWDOWN=2.8
|
||||
LIGHTHOUSE_ARGS += --view --budget-path linter-configs/budget.json --output html --output json --output-file lighthouse-results --throttling.cpuSlowdownMultiplier=$(CPU_SLOWDOWN) --chrome-flags="$(CHROME_FLAGS)"
|
||||
CPU_SLOWDOWN=15.0
|
||||
LIGHTHOUSE_ARGS += --budget-path linter-configs/budget.json --output html --output json --output-file lighthouse-results --throttling-method=devtools --throttling.cpuSlowdownMultiplier=$(CPU_SLOWDOWN) --chrome-flags="$(CHROME_FLAGS)"
|
||||
|
||||
hint-online:
|
||||
hint --config linter-configs/hintrc $(URLS)
|
||||
|
|
Loading…
Reference in a new issue