Esta página todavía no está traducida, así que la ves en inglés.
DocumentaciónConceptos
Benchmarks
How much memory MCP servers take with and without the gateway, how turno-browser does on a fixed set of browser tasks, and what a page can observe about it.
This page gives the memory numbers behind turno's claim, how they were measured, and the command that reproduces them on your machine. The turno-browser section covers the browser server: an evaluation suite of browser tasks with paired A/B runs, a fingerprint and event bench, and a reputation bench that compares turno's Chrome with a plain one.
turno exists because of one measurement: 18 Claude Code sessions open on a 16 GB Mac held about 11.7 GB in MCP server processes, most of them copies of the same few servers. The benchmark reproduces that effect with public servers so anyone can check it.
Results
Apple M3, 16 GB, macOS, Node 26.13, 2026-11-16:
| Sessions | Each session starts its own servers | turno, all six servers running | turno, idle (tool lists cached) |
|---|---|---|---|
| 4 | 1,410 MiB, 28 processes | 692 MiB, 8 processes | 101 MiB, 1 process |
| 8 | 3,163 MiB, 56 processes | 847 MiB, 8 processes | 103 MiB, 1 process |
4, servers through npx -y | 3,123 MiB, 52 processes |
With 8 sessions the gateway uses 73% less memory while every server runs and 97% less while they are idle. Direct memory grows with every session; the gateway's stays nearly flat, because only mcpd grows (one HTTP session per client).
Run it yourself
git clone https://github.com/wimo-dev/turno && cd turno
pnpm install && pnpm build
node bench/mcp-ram.mjs --sessions 8 --out bench/results/mine.json
node bench/mcp-ram.mjs --sessions 4 --npxThe script uses a throwaway HOME and never reads or changes your own configuration. It writes a result like this one (the 8-session run above):
{
"machine": "Apple M3, 16 GB",
"node": "v26.13.0",
"sessions": 8,
"direct": { "mode": "installed binaries", "mib": 3163, "processes": 56 },
"gatewayColdCache": { "mib": 847, "processes": 8 },
"gatewayWarmCache": { "mib": 103, "processes": 1 }
}Method
bench/mcp-ram.mjs installs six popular local MCP servers into a temporary folder (no API keys needed, versions pinned in the script):
@playwright/mcpchrome-devtools-mcp@modelcontextprotocol/server-filesystem@modelcontextprotocol/server-memory@modelcontextprotocol/server-sequential-thinking@upstash/context7-mcp
It then measures three setups with N simulated sessions. Each session does what an agent does when it starts: initialize and tools/list on every server.
| Setup | What runs |
|---|---|
| Direct | every session starts every server over stdio, as with a plain mcpServers entry (--npx starts them through npx -y, as most server READMEs suggest) |
| turno, all servers running | one mcpd (shared scope) with an empty tool cache: each server starts once to learn its tools and stays up for every session |
| turno, idle | mcpd restarted with the cache the first round wrote: the tool lists come from the cache and no server starts until a tool is called |
Memory is the sum of the resident set size (RSS) of every process involved, read from ps three seconds after the last session connected.
Caveats
- RSS counts shared pages once per process, so sums overstate real pressure somewhat for both setups. Activity Monitor's "Memory" column (physical footprint) gives lower absolute numbers but the same ratio.
- Servers that keep state per session (a browser driven by one agent at a time) should run with
scope = "session"orexclusive = true, which gives back some of the saving. Stateless servers (docs, search, memory, issue trackers) share safely. See Scopes. - Servers that open a browser or index files use much more memory once a tool runs; this benchmark only starts them and lists their tools, which is what every session pays even if it never calls them.
- Run it on your own machine with your own servers before quoting a number:
turno mcp listshows what you run, and the script'sSERVERSlist is easy to edit.
On your real setup
Once the gateway runs, turno mcp savings compares its memory now with an estimate of the same live sessions without it, and turno mcp top shows memory per running server.
turno-browser
Three scripts in bench/browser measure the browser server itself. All of them start the built turno-browser-mcp the way an agent does, over stdio, on a throwaway identity in a throwaway HOME, so they test the real server and never read or change your own profiles.
git clone https://github.com/wimo-dev/turno && cd turno
pnpm install && pnpm build
# tasks and configurations
pnpm bench:browser --list
# every task, the default configuration
pnpm bench:browser
# A/B: default against settle-100
pnpm bench:browser --b settle-100 --rounds 5
# what a page can observe, against plain Chrome
pnpm bench:fingerprint
# leak and consistency detectors, against plain Chrome
pnpm bench:reputationEvaluation suite
pnpm bench:browser runs a fixed set of short browser tasks on local fixture pages:
| Task | What the agent does |
|---|---|
form | fills a sign-up form (text, email, select, radio, checkbox) and submits it |
popup | approves an authorization popup and comes back to the page that opened it |
overlay | clicks a button a cookie banner covers, reads the error, dismisses the banner, retries |
slow | waits for a slow page and its late data, then confirms the order |
tabs | opens 10 reports in new tabs, reads a value from each, submits the sum |
shadow | types into a field two shadow roots deep and applies it |
frames | fills a form in a same-origin iframe and presses a button in a cross-origin iframe |
dialog | deletes a draft behind a confirm() dialog |
find | reads one price from a 400-row catalog without reading the whole page |
clicks | presses 8 buttons that only change the page and 4 that also send a request |
Each task is a fixed script of tool calls, the way an agent works: take a snapshot, act on the refs it shows, read an error and recover. It is not a model, so every configuration gets exactly the same calls; the suite answers "does this change break a task, add calls, or cost time, tokens or memory", not "how good is an agent". Every run gets its own server, Chrome and fixture site, and Chrome starts before the clock does. For each run it records:
| Metric | How |
|---|---|
| Success | from what the fixture site received (each page posts what the user did), never from what the script believes |
| Steps, errors | tool calls the model would send, and how many returned an error |
| Wall time | of the task, after Chrome has started, and of each call, by tool |
| Tokens | bytes of tool results divided by four, an estimate |
| Observation tokens | the same for the page snapshots the results carry inline, what the model reads of the page |
| Wrong-element actions | per 1,000 actions: a click, typed text, form field or selection whose input events landed on another element than the one the call named |
| Click time | from the page's own clock: before the press (finding the element, waiting until it can be clicked, scrolling, moving the pointer), the press, and after the click event (Playwright's settle wait, the wait for requests the click started, the result) |
| Peak memory | the highest sum of resident memory of the server and its Chrome processes, sampled every 200 ms |
Every fixture page records which element each input event landed on, by the name an accessibility snapshot shows for it, and the site logs when each request arrives; the suite matches both with the time of each call. Pages report their input events over a WebSocket rather than a request, because Playwright waits for the requests an action starts and would count the report in the click's time. An action that returned an error (Playwright refused it, as for the covered button in overlay) is not a wrong-element action.
With --b <config> every task runs in both configurations, in pairs, and the configuration that runs first alternates from one round to the next, so a warm cache or a machine that heats up weighs on both sides. The second table gives, per task and for all tasks together, the median of the paired differences (B minus A) relative to A, in how many pairs B was lower and higher, and from five rounds on a 95% bootstrap interval. --smoke runs four tasks once; CI runs it on every pull request. --json and --out <file> give the full report, every tool call included.
Configurations are data in bench/browser/lib/configs.mjs: server flags, identity.json keys, environment, another build of the server, headed or headless. The built-in ones:
| Configuration | What changes |
|---|---|
default | nothing: the server as installed |
headed | a visible Chrome window |
settle-100 | "settle": "100ms" |
settle-0 | "settle": "0": no wait after an action, which isolates what the wait costs a click |
block-heavy | blocks images, media and fonts |
tabs-4 | at most 4 open pages |
humanize-light, humanize-full | human-like input levels (needs a turno-browser that has them) |
lightpanda | read mode on Lightpanda (needs lightpanda on PATH or TURNO_LIGHTPANDA_PATH; tools read mode refuses count as failed tasks) |
camoufox | Camoufox as the engine (needs Camoufox and a matching playwright-core, see Camoufox) |
user-agent-coherent, user-agent-coherent-tz | "userAgent": "coherent", the second with a time zone other than the computer's; both expect the headless token gone and the consistency checks to pass |
timezone-other, locale-other | a time zone (Pacific/Auckland) or a locale (fr-FR) other than the computer's; both expect a worker to read what its page reads, and the headers to match |
A configuration the server does not accept (an unknown identity.json key, engine or flag, or a Lightpanda or Camoufox that is not installed) is reported as unsupported instead of failing. More go in a JSON file passed with --config-file, for example a before and after of an update, or Chrome Beta:
[
{ "name": "main", "description": "the build on main", "bin": "../turno-main/packages/browser/dist/bin/mcp.js" },
{ "name": "beta", "description": "Chrome Beta", "args": ["--browser", "chrome-beta"] }
]pnpm bench:browser --config-file configs.json --a main --b default --rounds 5The tasks are scripted so the suite needs no model. For a model-driven run, --driver <module> loads an ES module whose default export is { name, async run({ goal, startUrl, agent, tools }) }: it gets each task's request in words, the page to start on, the server's tool list and an agent whose call(tool, args) calls a tool and records it like a scripted step, and it returns the answer for read-only tasks. The checks stay the same, so success, steps, time, tokens and wrong-element actions compare directly with the scripted runs.
Apple M3, 16 GB, macOS, Node 26.13, Chrome 157 headless, turno-browser 0.3.0, 2026-11-18, default against settle-100, five rounds (raw output in bench/results). Medians, then the median of the paired differences with its 95% interval:
| Task | Calls | Tokens | Wall time, default | Wall time, settle-100 | Difference |
|---|---|---|---|---|---|
form | 5 | 529 | 1,354 ms | 542 ms | -59% [-1,012, -699 ms] |
popup | 9 | 576 | 876 ms | 411 ms | -46% [-588, -247 ms] |
overlay | 6 (1 error) | 495 | 6,837 ms | 5,545 ms | -18% [-1,479, -1,132 ms] |
slow | 5 | 335 | 3,789 ms | 3,106 ms | -13% [-940, +3,013 ms] |
tabs | 66 | 6,727 | 9,549 ms | 6,518 ms | -31% [-5,847, -1,938 ms] |
shadow | 5 | 338 | 1,205 ms | 329 ms | -73% [-1,046, -728 ms] |
frames | 5 | 392 | 2,357 ms | 680 ms | -67% [-2,357, -1,329 ms] |
dialog | 5 | 308 | 1,223 ms | 450 ms | -67% [-897, -599 ms] |
find | 2 | 165 | 182 ms | 208 ms | +17% [-135, +135 ms] |
| all nine | 108 | 9,865 | -36% [-11.8, -4.4 s] |
Every run of both configurations succeeded, with the same calls and tokens: a shorter settle changes only the wait. It saves the most where a task is mostly actions (shadow, frames, dialog), little where the time goes to the page (slow, whose interval crosses zero) or to one call (find). Peak memory was about 1,000 MiB per run (1,630 MiB with ten tabs open) in both. The overlay task spends about 5 s in its first click: the click waits out the action timeout before turno says which element covers the button. The machine was busy with other work during the run, which is what the pairs are for.
Fingerprint and event bench
pnpm bench:fingerprint opens a local probe page through the server and runs fixed steps with the stock tools: a click, a hover, a typed text, a text typed with slowly, and a click on a button below the fold. The page records what any site can observe and posts it to the bench, so reading the result never touches the page:
- navigator: user agent, client hints and their agreement with it, languages, plugins, WebGL renderer, window size and its fit in the screen, color scheme and other media preferences, permissions;
- automation markers:
navigator.webdriverand how it is defined, globals that Playwright, Puppeteer or Selenium leave, and any global plain Chrome does not have; - consistency: the headers of the page's own request against what the page reads (User-Agent, Accept-Language, the client hints brands and platform), a dedicated worker against its page (user agent, platform, languages, time zone, date format), and the language dates are formatted in against the first language;
- protocol side effects: DOM calls that come from outside the page's own scripts, whether
navigator.credentialsmethods print as Chrome's own at load and during input, whether the page's Content Security Policy holds, and the oldRuntime.enableconsole leak; - input events:
isTrusted, timing, coordinates and coalesced events of every pointer, key and wheel event, and the pointer path before the click.
The reference is the same installed Chrome started directly on the probe page, with no automation at all and a throwaway profile; matches-plain-chrome lists the fields that differ. Each check is pass, info (a fact, not a problem), warn (something a detector can see) or fail (a contradiction or a plain automation marker).
On Chrome 157 with the default configuration, headed, every navigator, automation and protocol check passes and the fields match plain Chrome. The input checks warn, as expected for the stock tools: the cursor makes one move to the exact center of the target, the button is pressed and released within 2 ms, slowly types a key every 1 to 5 ms, plain typing arrives as one input event, and a click below the fold scrolls in one jump. Those are what human-like input changes; the humanize-light and humanize-full configurations state in expect which input checks they must turn into a pass, and the bench fails when they do not.
To catch a regression after a Patchright or Chrome update, keep a report and compare the next run with it; the exit code is 1 when a check got worse:
pnpm bench:fingerprint --headed --out before.json
# update patchright-core or Chrome, rebuild
pnpm bench:fingerprint --headed --baseline before.jsonThe public detector pages run only when you set TURNO_BENCH_PUBLIC_DETECTORS=1: rebrowser bot-detector, Sannysoft, CreepJS, and the TLS fingerprint at browserleaks, whose JA4 and HTTP/2 hashes must match plain Chrome's exactly. These are third-party sites: they see the visit, your IP address and your browser. The bench always uses the throwaway identity, never a profile you signed into. Measured once on the machine above, headed: Sannysoft 0 of 31 tests failed, CreepJS 0% headless, JA4 and HTTP/2 identical to plain Chrome, and rebrowser 16 of 16 passed (Chrome 157). Playwright turns off Chrome's third-party storage partitioning, which a normal Chrome has, and rebrowser flagged it as storagePartitioning; turno passes Playwright's list of disabled features without that one, so it stays on.
turno browser bench, in the CLI, is a different tool: it launches engines directly through Playwright, without the MCP server, against the public pages and your own URLs. This bench drives the server you run, adds the local probe and the input events, and lives in the repository.
Reputation bench
pnpm bench:reputation runs the detectors anti-bot vendors build on against turno's Chrome and against the same installed Chrome started directly, with no automation, a throwaway profile and the mock keychain, in the same mode (headed or headless) on the same machine. Every detector page is served by the bench itself on 127.0.0.1 from a copy pinned to a commit or a release and to its SHA-256 (bench/browser/lib/sources.mjs, downloaded once into bench/browser/.cache); a copy whose hash changed is refused. The browsers never visit a third-party site.
| Suite | What it reads |
|---|---|
| rebrowser-bot-detector | every test, including the ones that need the automation to act: the bench runs the calls the page asks for, the way an agent's browser_evaluate would |
| CreepJS | the headless section (its percentages and the signals behind them) and the lies |
| BotD | the verdict and which of its detectors fired, with BotD's own usage reporting off |
| probe | the fingerprint bench's page: navigator, automation markers, protocol side effects, consistency, and the input events: mousemove rate, clicks with no movement before them, coalesced and pointerrawupdate events, isTrusted, and whether the page had focus and was visible when input arrived |
Each detector posts its own result to the bench through a small reporter script, so reading a result never needs the automation and a plain Chrome reports the same way. Two upstream lines are changed when served, to keep the browser on the machine: rebrowser's Content Security Policy test loads its script from the bench's second origin instead of w3schools.com, and its Chrome version test reads the latest stable release from the bench, which asks chromiumdash once (--offline skips that, and that one test then says it cannot tell).
A difference from plain Chrome is a fail when a detector gives turno a verdict it does not give plain Chrome (a red rebrowser test, a higher CreepJS headless percentage, more lies, a BotD bot verdict), a warn for the softer signals of the same kind, and info otherwise. The bench exits 1 on a fail. The JSON report (--out) carries the Chrome and patchright-core versions it ran with, and --history <file> adds the run to a file keyed by those two versions, which is how a patchright-core or Chrome update is compared with the last one that passed.
Plain Chrome gets no input, so its event numbers show only what the page sees on its own. --human opens it headed on the probe page and lists the steps for you to do by hand; your input then becomes the reference the event numbers are compared with.
Caveats
- Passing a detector page says little about how a real site scores a visit; the value is the trend between runs and configurations.
- The tasks are scripted. They measure the server's part (calls, waits, result size, memory), not a model's choices.
- Tokens are estimated from bytes; a real tokenizer gives somewhat different numbers, the same way for both sides of an A/B.
- Memory is RSS summed over the processes, which overstates real pressure as in the gateway benchmark above.
- Other work on the machine adds noise to wall time. Pairs and alternation spread it over both sides, and the interval shows how much is left; run five rounds or more before trusting a difference.