# Performance

What speeds to expect, and what actually affects them — measured, not promised.

These numbers come from measuring a small production cluster — three
4-vCPU nodes, around €33 a month of infrastructure — under saturation,
with the load generator in the same datacenter. Treat them as **floors on
modest hardware**, not headlines: real visitors add network round-trips
these tests do not include, and real handlers do more work than test
routes. We re-measure as the platform evolves and update this page from
the same benchmark harness.

That cluster was the platform's first, measured in September 2026. The
hosted platform has since moved to larger dedicated servers, and this page
has not been re-measured there.

## What to expect

**Static assets: the platform is not your bottleneck.** An asset is served
by the host from the content-addressed store — your code never runs. The
platform's own cost is on the order of **160 microseconds of CPU per
request**, and the small cluster above sustained **tens of thousands of
static requests per second** before the network in front of it became the
limit. For a static site, performance work belongs in your pages, not in
your hosting.

**Server routes: single-digit milliseconds, then your work on top.** Every
request to a declared route runs in a freshly created isolate. A minimal
route answers in roughly **3–6 ms** before network; rendering a real
12.5 KB page costs about **5–6 ms of CPU** per request. There is no warm
instance to hit or miss — the cost is flat and per-request, which also
means there is no cold-start lottery: the first visitor and the millionth
pay the same.

**Throughput on dynamic routes is a CPU question.** The same small cluster
held roughly **1,000–1,800 rendered responses per second** at saturation.
Compared with static serving, the same bytes cost about **35× more** to
render per request than to serve as an asset — which is why the platform
routes assets first and starts your code only for declared routes.

## What affects speed — and what does not

Things that matter when you design a site:

1. **Prerender what you can.** A prerendered page is an asset: served in
   microseconds, no isolate. With [the Astro adapter](/hosting/astro.md) this
   is per-page — keep rendering on demand only where the response actually
   depends on the request.
2. **Response size and per-request work.** These are what run out. In our
   measurements a lean rendered page costs ~5 ms; a 250 KB render costs
   ~37 ms and cuts throughput by an order of magnitude. Query, filter and
   paginate in the handler rather than rendering everything.
3. **Let the cache headers work.** Hash-named assets are immutable for a
   year, HTML revalidates with 304s — see [Caching](/hosting/caching.md).
   A returning visitor's repeat page view can move almost no bytes.

Things that, measured, matter little or not at all:

- **Bundle size.** A 539 KiB server bundle served about 8 % fewer requests
  per second than a 5 KiB one — releases are pre-initialized at deploy
  time, so instance-per-request taxes framework-sized output only
  slightly.
- **Route count.** Routing is a lookup; declare as many as the file tree
  produces.

## Caveats, stated

All figures are intra-datacenter (no real client RTT), from byte-stable
test responses, on the specific hardware named above. Self-hosted
installations differ with their iron. The numbers come from our own benchmark apps and harness and are updated
from them. If your measurements disagree with this page, write to
[support@pilvia.com](mailto:support@pilvia.com).
