ROMSO · Engineering notes

Real queries.
Six pinned workers.
429 requests per second.

A first production-endpoint load test of the ROMSO C11 search engine, using a query set prepared from MS MARCO and measured over HTTPS through Caddy.

31 October 2026 ROMSO LTD wrk · MS MARCO · C11

The result at a glance

429.20requests / second
97.70 msmean latency · 40 connections
73.54 msp50 latency
363.81 msp99 latency
The useful result is not the biggest number.

With real, changing search queries, the endpoint sustained about 429 requests/s in the 40-connection run. Increasing concurrency to 100 connections did not improve throughput; it mainly increased latency. That is a much more useful finding than a spectacular number from repeatedly requesting one fixed URL.

The search corpus: English Wikipedia

6.4MEnglish Wikipedia articles
20 GBtext corpus

ROMSO serves searches over an index built from the English-language edition of Wikipedia: approximately 6.4 million articles, representing around 20 GB of text. The load test uses a separate set of changing, MS MARCO-derived search queries and sends them to this Wikipedia-backed index.

The 20 GB figure describes the text corpus, not the in-memory index footprint. This benchmark measures request throughput and latency against that corpus; it is not a relevance evaluation of MS MARCO queries against Wikipedia.

Test setup

Search service

  • ROMSO search engine, implemented in C11.
  • Six search workers pinned to dedicated CPU slots.
  • Two additional CPU threads left for Caddy and the operating system.
  • Public API endpoint: https://api.romso.com/
  • HTTPS terminated by Caddy; requests use the q query parameter.

Load generator

  • wrk, with six load-generator threads in the main comparison.
  • Query strings selected from a prepared MS MARCO-derived query file.
  • Requests sent to /?q=..., with query text URL-encoded.
  • Explicit User-Agent, Accept and Accept-Encoding: identity headers.
  • Responses are JSON search results, typically returning up to 20 entries.

The six ROMSO workers are separate from the six wrk client threads. The worker affinity and CPU allocation above describe the service layout, not the load-generator thread count.

Measured runs

wrk threadsConnectionsDurationRequests/sMean latencyTotal requests
22030 s362.5662.35 ms10,895
64060 s429.2097.70 ms25,793
610060 s427.75279.03 ms25,702

Latency distribution · 6 threads, 40 connections

The 40-connection run also reported a maximum latency of 495.15 ms and transferred 368.79 MB. Two requests returned HTTP 400; the other 25,791 requests were successful.

The 100-connection run reported a maximum latency of 1.23 s and transferred 369.18 MB. Its captured output did not include a non-2xx/3xx summary line.

What the numbers tell us

Throughput reaches a plateau

Moving from 40 to 100 open connections changed measured throughput from 429.20 to 427.75 requests/s — effectively flat, and slightly lower in the 100-connection run. Mean latency, however, rose from 97.70 ms to 279.03 ms, roughly 2.85 times higher.

More concurrency did not mean more search capacity.

Under this workload, 40 connections were already enough to reach the observed throughput plateau. More connections mostly increased the time requests spent waiting. The next useful exercise is to map the latency/throughput curve at 10, 20, 30, 40, 60 and 80 connections — not simply keep increasing concurrency.

A tempting monthly extrapolation

429.20 requests/s multiplied by every second in a 30-day month gives approximately 1.11 billion requests. This is arithmetic, not a capacity guarantee: it assumes a flat rate, uninterrupted operation, the same query mix, the same response size and no operational headroom. A one-minute load test cannot establish sustained monthly capacity.

The debugging was part of the benchmark

The first spectacular number was not a valid search benchmark. An early run targeted /q=test rather than the actual route /?q=test. It was discarded.

There was another trap: requests generated by the default wrk setup returned HTTP 400, while a simple request with explicit headers worked. The final runs therefore used the following header set:

-H 'User-Agent: wrk-romso-benchmark' \
-H 'Accept: */*' \
-H 'Accept-Encoding: identity'

The query file also contained form-encoded spaces represented by +. The loader converts those back to spaces before encoding the URL parameter. The exact reason each default-header request was rejected was not isolated; the working header combination was used consistently for the measured runs.

Finally, the two HTTP 400 responses in the 40-connection run remain to be traced to their individual queries. They are few, but they should be explained before treating the result as a clean benchmark.

Reproduce the 40-connection run

wrk -t6 -c40 -d60s --latency \
  -H 'User-Agent: wrk-romso-benchmark' \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: identity' \
  -s test3.lua \
  https://api.romso.com/

The Lua script loads the prepared query file, selects a query, URL-encodes it and requests /?q=.... The command assumes the same script and query file are available locally.

What still needs to be measured

The point

ROMSO is a compact C11 search engine serving an approximately 20 GB English Wikipedia text corpus covering 6.4 million articles. With six CPU-pinned workers exposed through a public HTTPS API, this first real-query test delivered about 429 search requests per second with a 97.7 ms mean response time at 40 concurrent connections. At 100 connections, throughput stayed essentially unchanged while latency increased substantially.

This is an encouraging engineering measurement — not a synthetic single-query headline, and not yet a fully reproducible capacity claim. There is still work to do, which is exactly why the next benchmark should be more controlled, not merely bigger.