Skip to content

[Question] What cause the long lanuch browser time? #13667

@ChenShuy1

Description

@ChenShuy1

Hi, there is a question about the browser lanunch time different between my remote machine(docker, debian OS) and my local machine(mac@10.15.7), I tried to figure out what cause the lanuch time different(CPUs or anything)
There is MAC lanunch Time, use 6ms:

pw:browser <launching> /Users/syc/Library/Caches/ms-playwright/chromium-965416/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --enable-use-zoom-for-dsf=false --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --disable-gpu --no-zygote --disable-accelerated-2d-canvas --user-data-dir=/var/folders/j1/lwz7382n12q_d54r6g73bpx00000gn/T/playwright_chromiumdev_profile-XiF6WW --remote-debugging-pipe --no-startup-window +0ms
  pw:browser <launched> pid=23399 +6ms
  pw:browser [pid=23399] <gracefully close start> +1m
  pw:browser [pid=23399] <process did exit: exitCode=0, signal=null> +30ms
  pw:browser [pid=23399] starting temporary directories cleanup +0ms
  pw:browser [pid=23399] finished temporary directories cleanup +5ms
  pw:browser [pid=23399] <gracefully close end> +0ms

There is Remote Debian Machine Time, use 2s:

pw:browser  /ms-playwright/chromium-965416/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --disable-gpu --no-zygote --disable-accelerated-2d-canvas --user-data-dir=/tmp/playwright_chromiumdev_profile-UUacsp --remote-debugging-pipe --no-startup-window +0ms
  pw:browser  pid=197 +2s
  pw:browser [pid=197][err] [0421/042436.435031:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +102ms
  pw:browser [pid=197][err] [0421/042436.435134:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +0ms
  pw:browser [pid=197][err] [0421/042436.443952:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. +9ms
  pw:browser [pid=197][err] [0421/042436.497203:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. +53ms
  pw:browser [pid=197]  +1m
  pw:browser [pid=197]  +16ms
  pw:browser [pid=197] starting temporary directories cleanup +0ms
  pw:browser [pid=197] finished temporary directories cleanup +4ms
  pw:browser [pid=197]  +0ms

It seems like 6ms vs 2000ms, I want to know machine settings or playwright settings affect startup time. Look for your answer:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions