Performance

Server results

Whole-stack results of the server suite over loopback TCP, with the dates and the changes between runs.

The server suite (net.rs) starts raftdb-server and drives it over loopback TCP with 4 clients and 4 shards. Source of all rows: the project's benchmark results log. Machine: Windows 11 dev PC, 12 logical CPUs, rustc 1.93.0, release build. Clients and server share the machine.

DateRunDurable insertsPoint readsOther
2026-11-09400k docs, windows of 5121.21M/s (target 300k)5.56M/s (target 2M)throughput only, no latency percentiles
2026-11-09filters, 1M docs0.94-1.29M/s4.5-5.8M/sfilter count scan 57.2M docs/s (target 50M); page of 100 as JSON 2,178/s
2026-11-09index, 1M docs--create ordered index 40 ms; {"id":N} 163/s by scan, 12,696/s through the index (78x; target 10k/s)
2026-11-09sorted, 1M docs--ORDER BY age DESC, _key LIMIT 100 24.8/s (target 20); ORDER BY _key LIMIT 100 OFFSET 500000 1.09/s
2026-11-11after D66 (table behind a read-write lock, reads on the connection's thread)2.08M/s4.95M/sindexed point query 15.8k/s; sorted top-100 23.7/s; scan 56.6M docs/s; JSON page of 100 2,099/s
2026-11-11after D68 (look before a blocking receive; system allocator)1.99M/s4.30M/sindexed point query 17.7k/s; sorted top-100 22.4/s; scan 88.3M docs/s; JSON page of 100 2,114/s

All targets passed in the 2026-11-11 runs: durable inserts 300k, point reads 2M, indexed point query 10k/s, sorted top-100 20/s, filter count scan 50M docs/s. The sorted top-100 is close to its target (22.4 against 20).

The scan figure moves from run to run on this machine (56.6M and 88.3M docs/s on the same suite two runs apart on 2026-11-11; 37.2M and 40.5M in earlier versions). Treat a single figure as a range.

In-process time of the MySQL front-end's reads (2026-11-11)#

The filterbench measurement of raftdb-mysql, no socket, allocation cache against system allocator:

OperationBeforeAfter
key read0.83 us0.15 us
count over an index range of 60 rows24.1 us12.5 us
page of those 60 documents50.4 us16.5 us
page of 51 rows by a range of the key32.9 us10.7 us

See also#