Русский

HOBA

Nearly 20,000 full HTML responses per second

HOBA builds pages at publication time and serves the finished HTML. In two one-minute runs with warm files, Core returned nearly 20,000 responses per second. About 95 out of 100 completed responses arrived within 5–6 ms.

How Core serves finished pages

On Linux, when the metadata cache is enabled, Core defaults to trying to read small local HTML files without waiting for disk. It uses the Linux file cache, not a separate in-memory HTML cache. A cold file or an unavailable fast path falls back to the normal asynchronous read. We evicted one test file and confirmed that the response bytes remained identical.

You can serve generated HTML through nginx

Put nginx in front of Core to proxy requests. With an HTTP cache configured, nginx can serve a stored public-page response without going back to Core. Cache rules must account for publishing, rollback, and disabling a site. Keep previews, Admin, and personalized responses out of that cache.

How we tested

We ran a copy of hobacms.ru (portal 0.3.39) and a release build of Core 0.2.18 on a dedicated Hyper‑V VM on Pal. Core and PostgreSQL shared six vCPUs. The client downloaded the full HTML of five pages: the home and documentation pages in two languages, and the downloads page. Each offered rate ran for one minute. Core was tested directly, without a proxy, CDN, or public internet connection.

What the numbers mean

We counted complete HTML responses, not unique visitors. This measures serving published HTML, not loading a complete site on a phone. Network connections, images, scripts, forms, search, and checkout need separate tests.

One-minute test results

Run 1 · 60 seconds

1,199,066

full HTML responses

19,984 responses/s · p95 5.3 ms

Run 2 · 60 seconds

1,199,552

full HTML responses

19,992 responses/s · p95 5.7 ms

Target: 20,000 requests/s. Every sent request completed without a timeout. The client missed 674 and 448 scheduled launches; its in-flight cap prevented 260 further launches in the first run and none in the second.

Latency at a target of 20,000 requests/s (ms)
Categoryp95 (ms)
Run 15.283
Run 25.689

What happens under overload

At 30–50k scheduled requests/s, Core delivered 23–24.5k responses/s, but the queue filled and latency rose. On the same fixture, warm nginx served HTTP cache hits without calling Core. It is a separate control, not the same serving mode.

Full responses by scheduled load, requests/s (responses/s)
CategoryCore (responses/s)Warm nginx cache (responses/s)
30,0002363029978
40,0002449339994
50,0002327249989
Time to receive 95 out of 100 full responses (ms)
CategoryCore (ms)Warm nginx cache (ms)
30,00085.9891.625
40,00083.0211.849
50,00088.7632.1