Description
Simple commands in playwright-cli consistently take ~1s to complete, even when the actual operation is trivial.
For example, a basic click command:
$ playwright-cli open "example.com"
$ time playwright-cli click e3
Output:
playwright-cli click e3 0.05s user 0.03s system 6% cpu 1.141 total
And even a minimal run-code:
$ time playwright-cli run-code "async page => { return 1; }" --raw
Output:
1
playwright-cli run-code ... 0.05s user 0.03s system 6% cpu 1.121 total
In both cases, total execution time is consistently over 1 second.
Comparison
Interestingly, snapshot / screenshot is significantly faster:
$ time playwright-cli snapshot
Output:
playwright-cli snapshot 0.05s user 0.02s system 72% cpu 0.095 total
Question
Is there a way to reduce the cost?
Description
Simple commands in
playwright-cliconsistently take ~1s to complete, even when the actual operation is trivial.For example, a basic
clickcommand:Output:
And even a minimal
run-code:Output:
In both cases, total execution time is consistently over 1 second.
Comparison
Interestingly,
snapshot/screenshotis significantly faster:$ time playwright-cli snapshotOutput:
Question
Is there a way to reduce the cost?