The result at a glance
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
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
qquery 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,AcceptandAccept-Encoding: identityheaders. - 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 threads | Connections | Duration | Requests/s | Mean latency | Total requests |
|---|---|---|---|---|---|
| 2 | 20 | 30 s | 362.56 | 62.35 ms | 10,895 |
| 6 | 40 | 60 s | 429.20 | 97.70 ms | 25,793 |
| 6 | 100 | 60 s | 427.75 | 279.03 ms | 25,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.
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
- Trace and eliminate the two HTTP 400 responses.
- Record the exact number of source queries and unique queries in the MS MARCO-derived file.
- Use distinct random seeds per
wrkthread; identical startup-time seeds could make worker threads replay the same query sequence. - Record CPU model, logical/physical topology, RAM, storage, kernel, Caddy version, ROMSO build identifier and index size for reproducibility.
- Confirm whether the load generator ran on a separate machine. If it shared the production host, client-side CPU and network work may have influenced the result.
- Run longer-duration tests and monitor CPU, queue depth, memory pressure, network throughput and error rate.
- Test both a warm index/page cache and a deliberately cold-cache scenario, if cold-start behaviour matters to deployment.
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.