Benchmarks
Speed on a good day, what happens on a bad one, and the exact command to run each test yourself.
Every speed claim Netweir makes is a script in bench/ that you can run. The numbers below are copied from the README, where they were measured on an Apple M-series laptop. Your machine will give different numbers; the shape should hold. The parsing and query benchmarks run in CI, and the build fails if any library beats Netweir. The crawl and the browser don't, and on those two Netweir doesn't come first.
Parsing and CSS extraction
Pulls every price, title and link out of a generated shop page.
| Library | 1 MB page | 10 MB page |
|---|---|---|
| Netweir | 3.0 ms | 31 ms |
| selectolax | 5.7 ms | 64 ms |
| BeautifulSoup (lxml) | 177 ms | 2.0 s |
| lxml + cssselect | 300 ms | 54 s |
| parsel | 297 ms | 54 s |
Measured on an Apple M-series laptop with Python 3.14.
selectolax parses with lexbor, a C parser. Netweir parses with its own, written in Rust from the HTML Standard, and runs the whole extraction in Rust too, which is where the other half of the time goes.
Run it yourself, from a checkout of the repository:
uv run --group bench python bench/parse.pyXPath and find_all
Parses the same shop page and asks six XPath questions, or six Beautiful Soup ones.
| Library | 1 MB page | 3 MB page |
|---|---|---|
| Netweir, XPath | 7.5 ms | 22 ms |
| lxml, XPath | 824 ms | 8.4 s |
| parsel, XPath | 823 ms | 8.5 s |
| Netweir, find_all | 7.7 ms | 23 ms |
| Beautiful Soup, find_all | 149 ms | 462 ms |
Look at lxml across the row: three times the page took ten times as long. Netweir builds a flat index of the document on the first query, so //x is a scan over a few arrays, and its time grows with the page and no faster.
Both this benchmark and the parsing one run in CI, and the build fails if any library beats Netweir.
Run it yourself, from a checkout of the repository:
uv run --group bench python bench/query.pyA whole crawl
One local server plays 100 sites of 100 pages, each answer 50 ms late, and every crawler fetches all 10,000 pages and pulls a title and price from each, with the same limits (100 requests in flight, 8 per site, no robots.txt, no throttling).
| Library | Pages a second | CPU per page | Peak memory |
|---|---|---|---|
| Colly 2.3 (Go) | 1,833 | 0.45 ms | 102 MB |
| Netweir | 1,782 | 0.21 ms | 89 MB |
| Crawlee for Python 1.11 | 1,464 | 0.78 ms | 256 MB |
| spider-rs 2.53 (Rust) | 1,246 | 0.26 ms | 303 MB |
| Scrapy 2.20 | 929 | 1.0 ms | 115 MB |
| Crawlee for Node.js 3.18 | 210 | 2.0 ms | 1,004 MB |
| httpx + selectolax | 203 | 3.4 ms | 207 MB |
| Scrapling 0.5 | 182 | 0.8 ms | 73 MB |
| Crawl4AI 0.9 | 76 | 5.5 ms | 136 MB |
| Firecrawl, self-hosted | 17 | 137 ms | about 3.8 GB |
With 100 requests in flight and 50 ms per answer, 2,000 pages a second is the most any crawler could do here. Colly and Netweir both come close, and Colly is about 3% faster; Netweir spends under half Colly’s CPU on each page, the least of any crawler here.
Not every tool can be held to every limit. Crawlee has no per-site limit. spider-rs and Crawl4AI keep the total near 100 by crawling a few sites at a time, and Crawl4AI’s per-site limit is its own 20, not 8. Scrapling is held back by its HTTP session’s default of 10 connections, which it doesn’t let you change; that is how it ships.
Firecrawl (v2.11.717, from its own docker-compose.yaml, on its defaults) gets one crawl job per site with 8 pages at a time. It renders each page in its Playwright service, which its compose file limits to 2 CPUs, and that is where its time goes. Its CPU and memory are summed across its containers; about 2.7 GB of that memory is in use before the crawl starts.
Medians of three runs, all crawlers in one session on one M2 Max (macOS 26.7, Python 3.13, Node 22, Go 1.27, November 2026); Firecrawl ran in its own session and gave 17 or 18 pages a second each time. The script’s docstring says how to build the ones that aren’t Python, and how to start Firecrawl.
Run it yourself, from a checkout of the repository:
uv run python bench/crawl.pyRendering pages in a browser
Each tool renders the 30 items of test.netweir.com’s client-rendered shop three times over, four pages at a time in one headless browser, and every name is checked against the site’s answer key. Netweir, Playwright and Puppeteer get the same Chrome for Testing 154 and Firefox 159 where they can take them.
| Library | Pages a second | CPU, whole run | Peak memory |
|---|---|---|---|
| Puppeteer 25.16, Chrome | 26.7 | 6.6 s | 1,850 MB |
| Playwright 1.65, Chrome | 22.4 | 9.2 s | 2,195 MB |
| Netweir, Chrome | 17.4 | 9.7 s | 1,732 MB |
| Puppeteer, Firefox | 16.4 | 12.8 s | 3,262 MB |
| Playwright, Firefox | 16.4 | 14.9 s | 2,690 MB |
| Netweir, Firefox | 12.9 | 21.1 s | 3,801 MB |
At defaults Netweir is the slowest of the three in both browsers, though in Chrome it peaks at the least memory. Part of that is a choice: Netweir’s pages are each a window at 1280 by 807, drawn in full the way a person’s would be, and it waits a moment, as a person does, when it turns to a page. Puppeteer shows one page at a time and leaves the other three as background tabs that draw nothing.
With the same settings for both, every page drawn and Netweir’s pause off (dialog_pause=(0, 0)), Puppeteer’s Chrome does 24.8 pages a second on 9.8 s of CPU and 1,972 MB, and Netweir’s 21.2 on 9.3 s and 1,739 MB: 15% slower, on less of both. In Firefox, Netweir without stealth or the pause does 15.2. Playwright drives its own patched Firefox, as it can’t drive a stock one.
The pages come from the live site, so speed moves between runs more than CPU or memory does: Netweir’s Chrome ranged from 11.8 to 17.7 pages a second, Playwright’s Firefox from 12.9 to 17.1. CPU and memory are the whole browser’s, every process summed, and shared memory is counted once per process, so they compare tools fairly but aren’t exact. Medians of three runs, every page right in every run, on one M2 Max, November 2026.
Run it yourself, from a checkout of the repository:
uv run python bench/browser.pyWhen things go wrong
Netweir 0.7.0 (0.7.1 for the redesign), Scrapy 2.19 and a self-hosted Firecrawl (v2.11.645, from its own docker-compose.yaml), each on its own defaults. Four tests use the public practice shop at webscraper.io/test-sites; the rate limit and the redesign are served locally. One M2 Max, November 2026; timings are medians of three to five runs.
A full crawl of a real shop
All three fetch the 179 pages of the practice shop at webscraper.io/test-sites, each on its own defaults.
| Tool | Seconds | Peak memory |
|---|---|---|
| Netweir | 4.0 | 47 MB |
| Scrapy 2.19 | 1.0 | 117 MB |
| Firecrawl, self-hosted | 59 | about 3 GB |
Scrapy finishes first because it doesn’t read robots.txt or pace itself by default, and Netweir does both. With the same settings Netweir is ahead either way: 0.26 s to 0.69 s with neither, and 3.8 s to 12.6 s with both.
Firecrawl’s memory is across its containers, idle after the runs. Raising its limits (50 jobs instead of 5, 50 pages instead of 10, 32 workers instead of 8) didn’t make it faster.
A site that allows 5 requests a second
Past that, a local server answers 429 with Retry-After: 1. It has 200 pages.
| Tool | Pages fetched | Requests sent during a Retry-After |
|---|---|---|
| Netweir | 200 | 0 or 1 |
| Scrapy 2.19 | 5 | 17 |
| Firecrawl, self-hosted | 17 to 30 | 161 to 224 |
Netweir takes about a minute, which is the site’s limit plus its own backoff. At 20 requests a second Netweir and Firecrawl both get all 200 pages, Netweir in 20 to 24 seconds and Firecrawl in 15 to 25, and Scrapy gets 20 to 40.
Firecrawl runs with ALLOW_LOCAL_WEBHOOKS=true for this one, without which it won’t fetch from a local address.
A crawl stopped a third of the way in, then run again
Netweir and Scrapy keep their state in a folder; Firecrawl’s API container is stopped or killed and started again.
| Tool | After a clean stop | After kill -9 |
|---|---|---|
| Netweir | 179 pages, none twice | 179 pages, none twice |
| Scrapy 2.19 | 179 pages, 2 twice | 107 pages, or 179 with 108 or 109 twice |
| Firecrawl, self-hosted | 179 pages, none twice | 179 pages, none twice |
Scrapy’s documentation promises a resume only after a clean stop. Firecrawl’s queue lives in its Postgres container, so a job outlives its API, though not that container, which its compose file gives no volume.
A page that loads more as you scroll
The practice shop’s laptop page shows 117 products.
| Tool | Products read |
|---|---|
| Netweir, in Chrome | 117 |
| Firecrawl, self-hosted | 3 |
Scrolling is one of Firecrawl’s page actions, which need Fire Engine, a separate engine its self-hosting guide leaves you to connect. Its hosted service has actions, and isn’t tested here.
A redesign
Each learns .price on 50 product pages, then reads 50 after a redesign, with a “was” price and a shipping price beside it on every page to catch a wrong guess.
| Tool | Classes renamed | Classes, tags and layout changed |
|---|---|---|
| Netweir, track= | 50 right, 0 wrong | 50 right, 0 wrong |
| Scrapling 0.5, adaptive=True | 50 right, 0 wrong | 50 right, 0 wrong |
| Scrapy 2.19 | 0 found | 0 found |
Netweir’s second column is from 0.7.1; 0.7.0 finds 0 of those 50. Firecrawl isn’t here: it reads fields with a language model, and the self-hosted setup has none.
Run it yourself, from a checkout of the repository:
uv run python bench/reliability.py throttle --rate 5The script's opening comment covers the Firecrawl setup. It runs against someone else's site, so it stays on the paths that site's robots.txt allows; please don't run it in a loop.
Try your own scraper
We run a practice site of our own at test.netweir.com. It has 19 tests, from a 495-product shop to infinite scroll, rate limits, logins and a redesign. Each one publishes an answer key, so you can check what your scraper pulled out against what was really there. Point any tool at it; that's what it's for.
Setting up to run them
The benchmarks live in the Netweir repository and run against a development build. You need Rust, a C compiler, CMake and uv:
git clone --recurse-submodules https://github.com/netweir/netweir
cd netweir
uv sync --group dev
uv run maturin develop --uvThe parsing and query benchmarks install the libraries they compare against with --group bench. The crawl and browser benchmarks expect the tools they compare against to be installed already, and each script's opening comment says how.