Skip to main content

webrain vs Crawl4AI

Crawl4AI is an open-source Python async crawler designed for LLM-friendly output (markdown + LLM extraction), built on Playwright. webrain is an open-source Rust MCP server — the same LLM-friendly goal, delivered as a protocol any client can use. Pick Crawl4AI when you’re already writing Python and want an async crawler library with in-process LLM extraction, or when its response cache and HTTP-only crawler already cover your workload.

Measured: the same 40 pages, the same lanes

Both tools crawled the same 40 URLs, from the sitemap of https://scrapling.readthedocs.io/en/latest/, both headless Chromium, both producing markdown, both given 6 concurrent lanes. webrain was called the way a client calls it: webrain_batch over the MCP HTTP transport (webrain mcp --http 9223), not through the CLI shortcut. Median wall: 11.3 s vs 21.5 s on Crawl4AI’s own defaults (1.9×), or 11.3 s vs 18.1 s when it is pinned to our 6 lanes (1.6×). Best sample against best sample is 5.6 s vs 18.0 s (3.2×). Scaled to 50 pages at the same rate: webrain ~7–14.7 s, Crawl4AI ~22.5–36 s. The spread is real and it is mostly the origin, not the tool: on the same rig and the same 40 URLs, webrain’s CLI path returned 4.68 / 4.98 / 6.55 / 6.76 / 6.99 / 8.16 / 8.53 s and Crawl4AI’s default dispatcher returned 21.49 s and 28.90 s. Treat the medians as the claim and the extremes as noise. (Crawl4AI 0.9.1, the release current when this section was first written, measured 17.4–23.6 s with the same script.)

What the gap is not

It is not extraction. Crawl4AI with markdown_generator=None took 17.4 s against 17.8 s with markdown on, so conversion costs about 10 ms per page. The time is in navigation and per-URL round-trips, which is what a Rust batch that keeps tabs on one long-lived CDP connection avoids. It is not lane count either: Crawl4AI ran with 10 permits on its default dispatcher and still took twice as long as a 6-lane webrain batch.

How it was run

Crawl4AI’s documented default is MemoryAdaptiveDispatcher with max_session_permit=10 and rate_limiter=None; SemaphoreDispatcher and RateLimiter(base_delay=(1,3)) are opt-in and only make it slower on a single-domain list.

Caveats, so you can discount the table properly

  • 40 URLs, extrapolated to 50. Same machine (i5-12600K, 32 GB); 3 webrain + 2 Crawl4AI repeats as listed, interleaved so neither tool only ever ran on a warm or cold box. The MCP HTTP numbers are the ones in the table; the CLI numbers above are the same workload through the same server code without the HTTP round-trip.
  • webrain attached to an already-running Chrome 158, so its browser launch is excluded; Crawl4AI launched chromium-headless-shell inside the timed window (0.5–0.7 s). That favours webrain by well under a second.
  • The builds differ: Chrome for Testing 158 vs playwright’s headless shell 1228.
  • Warm OS HTTP cache after the first run favours whichever tool ran second.
  • Origin throttling dominates both, and it is measured on one docs site. On a heavier site the shapes change: webrain’s published 50-page figure is 10.5 s for 50 ~1 MB recipe pages on local Obscura, which is a different workload, not a universal “50 pages in 10 s”.

What would close the gap

  • CacheMode.ENABLED on repeat runs makes Crawl4AI near-instant; webrain’s equivalent is cache_dir + cache_ttl_secs on webrain_crawl.
  • Crawl4AI’s HTTP-only crawler skips Playwright entirely for static HTML, much like webrain_batch {"op":"read"}.
  • More lanes: 6 is a choice on both sides, though this origin throttles past it.
Pick webrain when you want MCP-native tools callable from any LLM client or language, with multiple engines and a single static binary.