What costs time
A short job spends most of its time starting the browser. A long one spends it on the pages.
The fingerprint is applied once at startup, in the browser engine, so no page is patched and no command carries extra cost for it.
Regions
Surfsky runs in Germany and the United States. Each region has its own API host, shown in the dashboard, and your token works on both. A browser runs in the region you start it in, so use the host closest to your worker: every CDP command pays the network latency between them. The limit on running browsers is shared by both regions. Rate limits, the list of running browsers and the shared cache are separate in each, so list and stop a browser through the host that started it. A persistent profile runs in one region at a time. To use both from one script, see run in both regions. Choose the proxy location separately, based on the location required by your task. A browser in Germany can use a US proxy. Target that location explicitly. Without it the exit IP can sit far from the target site and add latency to every page load; see location targeting.Reduce command round trips
Read related values in a single page evaluation to reduce command round trips. For example, collect link text and URLs together in Playwright:Wait for the content you need
Navigate withdomcontentloaded, then wait for a selector or response that shows the required content is ready:
load when the job needs later resources, such as a screenshot of the complete page. Avoid networkidle on pages with continuous background requests. A short fixed delay can appear fast while returning incomplete data.
If the page loads the required data from a JSON response, capture that response before doing additional DOM queries.
Block unneeded resources
For text extraction, test whether you can omit images, fonts, or media. In the Python SDK:Reuse state where it helps
A persistent profile can avoid repeated logins when its saved state is still valid. Enable the storage types the site needs, and use the default context when reconnecting. A shared cache can reduce repeated downloads across sessions. Measure a warm run and keep cache keys separate for workloads that need independent cache state. Reuse a browser for multiple related pages when the jobs can safely share cookies and storage. This saves startup work, but it also carries state from one job to the next.Scale with a bounded pool
Use the SDK pool with an explicit concurrency setting. Increase it gradually and measure completed results per minute alongside target-site failures and traffic per result. Start the next browser while the current job finishes so startup overlaps with work instead of adding to it. More workers stop helping when browser capacity, API rate limits, proxy throughput, or the target site becomes the bottleneck. See limits for the signals to monitor.Close what you open
Stop the browser when the job ends, including error paths. Chooseinactive_kill_timeout to allow legitimate pauses, and investigate sessions left running after a worker exits.
For long-running pools, retire a browser after a job leaves unexpected state or repeated failures. Do not recycle on an arbitrary schedule without checking whether it improves the workload.
If command round trips dominate after reducing unnecessary calls, move your worker closer to the browser or try the other region. Keep the same proxy and target URLs so the measurement isolates that change.