Playwright vs Puppeteer for web scraping: latency, memory, and concurrency tested.

We ran identical extraction workflows with Playwright 1.64.1 and Puppeteer 25.16.0 on the same Chrome installation. The comparison separates browser startup, page creation, static and JavaScript-rendered extraction, concurrency, and recovery.

This is a controlled local benchmark, not a test of third-party websites or anti-bot systems. The fixture data is deterministic and all test sessions are fake.

What we measured

A single end-to-end timing hides where the cost actually sits. We measured each phase separately so the results distinguish driver overhead from browser startup and page work.

  • Cold launch. Time to start a usable browser with each library's normal launch API.
  • Warm context and page creation. Time to create isolated work inside an already running browser.
  • Static and JavaScript-rendered extraction. Time to navigate, wait for the expected records, extract them, and validate the output.
  • Session creation and reuse. Time to establish a fake session and use it for protected records.
  • Concurrency. Wall time and peak sampled memory at 1, 4, 8, and 16 pages.
  • Recovery. Time to return a valid result after a controlled 503, expired session, or renderer crash, with no duplicate side effects.

How we kept the comparison fair

Both libraries drove the same Google Chrome binary with equivalent launch arguments, user agent, viewport, locale, timezone, cache behavior, navigation conditions, and extraction logic. Every successful workflow produced the same normalized records and SHA-256 output hash.

Environment

Apple M1 Max with 64 GB RAM, macOS 26.7.1 on arm64, Node.js 22.22.0, and Google Chrome 156.0.8078.47. Playwright 1.64.1 and Puppeteer 25.16.0 used the installed Chrome rather than separate downloads.

Run design

After a five-iteration pilot, each scenario received 10 warm-up iterations and 50 measured iterations per library in each of three batches. That is 150 measured iterations per library and scenario, with alternating and reversed execution order.

The fixture server ran on loopback and returned deterministic records, delays, sessions, and failures. No third-party traffic or production credentials were involved. Failed runs and outliers remained in the dataset.

Results

The tables below are generated from the same summary files available for download. Median and 95th-percentile timings use linear interpolation. Memory is the peak resident set sampled every 50 ms across the driver and browser process tree.

basic

Concurrency 1. Output SHA-256 82019f3c6c2f557b28d49baef9f3d98a49e82563c2ec7969e390208861e59e38.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
basic results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,534.297 1,912.884 43.312 1,389,200 0 133
puppeteer 150 1,485.032 1,721.059 28.117 1,279,208 0 80

js

Concurrency 1. Output SHA-256 82019f3c6c2f557b28d49baef9f3d98a49e82563c2ec7969e390208861e59e38.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
js results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,539.874 2,081.991 79.507 1,413,824 0 109
puppeteer 150 1,448.311 2,078.267 52.349 1,391,064 0 77

slow

Concurrency 1. Output SHA-256 82019f3c6c2f557b28d49baef9f3d98a49e82563c2ec7969e390208861e59e38.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
slow results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,588.321 1,952.328 127.119 1,397,048 0 134
puppeteer 150 1,585.66 1,785.88 111.992 1,393,904 0 101

session-create

Concurrency 1. Output SHA-256 82019f3c6c2f557b28d49baef9f3d98a49e82563c2ec7969e390208861e59e38.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
session-create results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,230.64 1,941.823 42.187 1,366,672 0 92
puppeteer 150 1,084.488 1,938.537 26.953 1,340,840 0 56

session-reuse

Concurrency 1. Output SHA-256 dcbeb5da6d230aac45370a586f29f45165bbf09a657c230cce74f8cc2f9b0685.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
session-reuse results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,224.635 1,593.065 130.094 1,431,696 0 78
puppeteer 150 1,120.927 1,583.748 70.284 1,399,392 0 63

failure-recovery

Concurrency 1. Output SHA-256 82019f3c6c2f557b28d49baef9f3d98a49e82563c2ec7969e390208861e59e38.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
failure-recovery results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,142.159 1,929.826 61.028 1,400,944 0 63
puppeteer 150 1,083.589 1,895.598 43.42 1,370,080 0 49

session-expiry-recovery

Concurrency 1. Output SHA-256 82019f3c6c2f557b28d49baef9f3d98a49e82563c2ec7969e390208861e59e38.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
session-expiry-recovery results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,444.541 2,077.536 94.228 1,417,296 0 103
puppeteer 150 1,401.074 2,087.995 65.921 1,402,752 1 ({"navigation":1}) 78

renderer-recovery

Concurrency 1. Output SHA-256 82019f3c6c2f557b28d49baef9f3d98a49e82563c2ec7969e390208861e59e38.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
renderer-recovery results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 2,055.498 2,164.111 523.392 1,418,832 0 136
puppeteer 150 2,011.867 2,119.403 495.967 1,408,272 0 124

concurrency-1

Concurrency 1. Output SHA-256 ac6bd22766ce3e7b430b83e87c80413b94dbb867778645d9452f030757a8d5f4.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
concurrency-1 results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,606.429 2,000.381 72.252 1,411,792 0 134
puppeteer 150 1,601.285 1,927.544 51.627 1,394,464 0 131

concurrency-4

Concurrency 4. Output SHA-256 e64c969be7b6b5ca04613bd4494e74c6ff44580864523d80972275ca7dfed801.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
concurrency-4 results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 1,838.042 2,748.425 284.519 1,832,768 0 114
puppeteer 150 1,667.812 2,988.284 260.658 1,779,920 0 51

concurrency-8

Concurrency 8. Output SHA-256 9244121abcf131043b86118367776ce4bb0304765f5b90cdef7f052c90ccec70.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
concurrency-8 results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 2,029.764 2,891.27 499.086 2,378,624 0 100
puppeteer 150 1,939.736 2,986.905 537.88 2,259,944 0 60

concurrency-16

Concurrency 16. Output SHA-256 b31009e6e04bec7779759c294c34215206b3a9d5772fb9b38ed9e4bd16e07ded.

  • playwright: batch 1: 50, batch 2: 50, batch 3: 50
  • puppeteer: batch 1: 50, batch 2: 50, batch 3: 50
concurrency-16 results. Times are milliseconds; memory is KiB.
LibraryNWall medianWall p95Workflow medianPeak RSS medianFailuresForced cleanup
playwright 150 2,306.164 3,361.031 819.052 3,493,488 0 104
puppeteer 150 2,418.128 3,409.615 1,028.314 3,212,864 0 80

What the results show

Puppeteer was faster in most wall-time comparisons

Puppeteer had a lower median wall time in 11 of the 12 scenarios. The exception was 16-page concurrency, where Playwright was 4.6% faster. Single-page concurrency was effectively tied at 0.3%, and the delayed static route differed by only 0.2%.

For JavaScript-rendered extraction, Puppeteer's median wall time was 1,448 ms, compared with 1,540 ms for Playwright, a 6.3% longer run for Playwright. For session creation, Puppeteer was 1,084 ms versus 1,231 ms, a 13.5% longer run for Playwright.

The 16-page result needs context

At 16 pages, Playwright's median wall time was 2,306 ms, compared with 2,418 ms for Puppeteer. Batch 1 actually favored Puppeteer, while batches 2 and 3 favored Playwright. That variation makes this a result worth replicating rather than a blanket concurrency advantage.

Startup is not the whole story

Cold launch was nearly tied for the basic scenario: 290 ms for Playwright and 298 ms for Puppeteer. The larger differences appeared in the workflow and shutdown phases. Puppeteer's page.evaluate extraction was also lower in this harness. For the JavaScript workflow, the median extraction phase was 0.46 ms for Puppeteer and 8.22 ms for Playwright. That is a measurement of these driver calls, not proof that every Puppeteer operation is faster.

Shutdown mattered too. The basic scenario's median close time was 665 ms for Playwright and 551 ms for Puppeteer. Chrome 156's DevTools pipe behavior forced the harness to clean up owned processes after graceful close requests stalled on 1,300 of 1,800 Playwright runs and 950 of 1,800 Puppeteer runs. The policy was identical for both libraries and is not evidence of a library bug, but it does affect end-to-end wall time.

Memory favored Puppeteer, but not by a fixed margin

Puppeteer had lower sampled RSS in every scenario, with differences ranging from 0.2% to 8.7%. At 16 pages, the median was 3.06 GiB for Puppeteer and 3.33 GiB for Playwright, a difference of 274 MiB. RSS includes shared pages and is not unique physical memory, so these figures are directional rather than an exact measure of each library's memory ownership.

What this means for a team choosing a driver

Existing Puppeteer users have no reason to switch based on this dataset. It won most wall-time comparisons and used less sampled memory. Playwright's result at 16 pages makes it worth testing for high-concurrency workloads, but the batch variation argues against choosing it from that result alone.

For long-running production systems, browser reuse, session handling, retries, monitoring, and shutdown behavior are more important than a small difference in API overhead. One Puppeteer session-expiry recovery run failed to receive a login response. It remains in the raw data and is excluded from timing percentiles. No duplicate side effects were observed in the measured runs.

Where these results apply

This benchmark compares two libraries on one machine, one Chrome version, and deterministic local workflows. It does not show how either library performs against every website, protection system, browser version, or production network.

Memory is a sampled resident-set measurement, not exact ownership of every shared page. Cold starts are noisy on a desktop operating system, and a 50 ms sampling interval can miss very short peaks. The fixture also removes most network variation, so production latency and failure rates will differ.

Use the raw data and the reproduction harness to test your own workload before treating these results as a universal recommendation.

Reproduce the benchmark

The public benchmark repository contains the fixture server, both adapters, process monitor, raw results, and analysis scripts.

git clone https://github.com/cyzanfar/playwright-puppeteer-benchmark.git
cd playwright-puppeteer-benchmark
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci
npm run verify
npm run benchmark
npm run analyze
npm run render

Node.js 22 and a local Chrome installation are required. Set CHROME_PATH if Chrome is not at the default macOS path. The README explains how to run a small pilot before the full benchmark and how to change the Chrome path for your environment.

When managed browser engineering makes sense

Library choice is only one part of a production automation system. Target behavior, sessions, proxies, browser identity, recovery, monitoring, and maintenance usually determine more of the operating cost than the driver API.

If your team needs more than a local benchmark, Nina builds and operates browser and access systems for authorized production workflows. That includes custom Chromium, managed browser workers, failure recovery, and regression testing.

Need a browser workflow built for production?

Tell us the target, workflow, and expected volume. We can review the constraints and propose the right access and recovery architecture.

Diagnose one workflow