Benchmark: one server's measured load
Measured: one Leafen server on a Mac Studio (M1 Max, 10 cores, 64 GiB) answered 295 requests a second at p95 48 ms (p50 4 ms, p99 409 ms) for ten minutes, with 30,000 simulated people each sending a request about every 100 seconds — reading, searching and writing 200 shared synthetic pages — the load made on the same machine and the server's request limits off (2026-10-22).
Left out of this measurement: the load came from the server's own machine; the request limits were off; the data is synthetic — one workspace and 200 short pages of the same words; no one edited together live, and there were no files, databases, imports or agents in the load (all of it).
This page says how to make the measurement again first, then how it was measured, what came out and what it leaves out.
Making it again
The tool is in bench/, with synthetic data only.
- Build the server:
go build -o bench-run/leafen ./desktop. - Make the data:
LEAFEN_BIN=bench-run/leafen BENCH_DIR=bench-run sh bench/data.sh. It starts a server of its own on a fresh folder, signs up 500,000 accounts, puts them in one workspace, makes the pages, and waits until the server has worked through the jobs the new members made — it prints the jobs left every half minute, and is done at 0 — then stops it. Here this took about 100 minutes and 2.9 GB. - Run the level on a copy of that data:
LEAFEN_BIN=bench-run/leafen BENCH_DIR=bench-run sh bench/level.sh 30k 30000. It takes about 11 minutes; the same command runs any other level. - Read the results:
BENCH_DIR=bench-run node bench/report.mjsprints the table below.
Each step's sizes — accounts, pages, people at once, think time, the request
mix, the length — are the tool's variables (bench/README.md); a small run
of a few hundred accounts goes through every step in minutes.
How it was measured
- Machine: a Mac Studio (M1 Max: 8 performance and 2 efficiency cores,
64 GiB of memory). One server,
LEAFEN_MEMORY_LIMIT=1536m. The load came from the same machine (Node v26.7.0, one process). - Data (synthetic): 500,000 accounts, all members of one workspace; the
owner's 200 private pages; 200 pages in an open teamspace the whole
workspace may edit (
openPageRole: edit), 30 paragraphs each. Members don't join the teamspace. - Making it: sign-ups 64 at a time, about 114 a second, 75 minutes; members 32 at a time, about 800 a second, 8 minutes; then the server left to work through the visibility list's 997,000 jobs, 16 minutes, the database 2.92 GB. The server stopped, the level ran on an APFS clone of that data.
- Load: each person at once uses an account of their own (the first
60,000 kept logins). Each starts at a random moment within the think time
and after each answer waits the think time × 0.5–1.5. Requests by weight:
reading a page's graph 50 (
GET /pages/{id}/content-graph), reading a page 25 (GET /pages/{id}), searching 10 (GET /workspaces/{id}/search, asking again with its cursor while it answers "indexing"), writing a block 15 (POST /pages/{id}/content-graph/mutations, a paragraph at the end), each on one of the shared pages at random. Ten minutes; the first 100 seconds, while people come in, aren't counted. The think time, 100 seconds, is the "typical" user's of Microsoft's capacity planning for SharePoint Server 2007 (Capacity planning, in Microsoft Learn's archive). - Server settings:
LEAFEN_RATE_LIMIT_PROFILE=test(the request limits off, for a benchmark only — never for a server people use),LEAFEN_SETUP_OPEN_MODE=print. - Measured: 2026-10-22, on a build from before the first release (0.1.0), so its commit is not in the public history.
Results
A think time of 100 seconds:
| Simulated people at once | Requests a second | All p50 / p95 / p99 | Graph p95 | Page p95 | Search p50 / p95 / p99 | Writes p50 / p95 / p99 | Failed |
|---|---|---|---|---|---|---|---|
| 30,000 | 295.1 | 4 / 48 / 409 ms | 10 ms | 3 ms | 44 ms / 607 ms / 1.1 s | 6 / 28 / 68 ms | 2 searches (400, a stale cursor) |
The server's processor averaged 306%, its memory peaked at 984 MB, and the machine sat 56% idle.
What it leaves out
- The measurement is the 30,000 simulated people and their 295 requests a second; how many people of a real organization one server holds depends on how they work, which wasn't measured.
- The load ran on the same machine as the server, which takes processor time from it.
- The server's request limits were off (
LEAFEN_RATE_LIMIT_PROFILE=test); a server people use keeps them on. - The data is synthetic: one workspace, the load on 200 short pages of the same words, no files, databases or history of years.
- Not in the load: editing together live (the collaborative documents' WebSocket), files, imports and exports, agents and automations.
- Results follow a core's own speed: a server with slower cores holds fewer people for the same count.