DataReelDataReelC++ Toolkit Documentation

DataReel 7.4 Benchmarks

What the DataReel 7.4 database and vector index cost on one Linux machine, measured by one program (utils/dr_bench, built with the utilities) with fixed random seeds. Every number below comes from the run of 11/15/2026 described under "How it was measured"; run dr_bench on your own hardware for yours.

How it was measured

dr_bench [WORK_FOLDER] [--quick]          # --quick: a tenth of the sizes, for a smoke test
dr_bench [WORK_FOLDER] --tls PKI_DIR [--tls-only]   # adds section 6 (TLS); --tls-only runs it alone

1. Records (gxDatabase)

200,000 fixed 128-byte records, appended with Alloc() and Write(), then read back at 200,000 random addresses.

OperationRateTotal
Append (Alloc + Write)289,000 records/s692 ms
Random read1,421,000 records/s141 ms
File size30.5 MB (160 bytes a record, with its block header)

The file is the records and their block headers, nothing else: a record's address (its FAU) is its key, so a read at a known address is one positioned read.

2. Transactions (gxdJournal)

Commits of 10 records of 128 bytes each through a gxdJournal.

CommitRatep50p99
Commit(1), durable (journal and data synced before it returns)1,302 commits/s0.41 ms0.61 ms
Commit(0), not durable (synced at the next checkpoint)25,100 commits/s0.01 ms0.02 ms

A durable commit costs about one disk sync; the rest is under 0.02 ms. Batching more records into one commit is what raises the durable record rate: the sync is paid once a commit, whatever its size.

3. Indexes (gxBtree)

200,000 random 64-bit keys in a B-tree of node order 32.

OperationRateTotal
Insert (random order)209,000 keys/s959 ms
Find (random)234,000 keys/s854 ms
Walk in order2,678,000 keys/s75 ms
File size4.9 MB

4. Vector search (gxVectorIndex)

50,000 vectors of dimension 96 in 100 clusters, cosine metric, graph degree M 16, ef_construction 200. 500 queries; recall@10 is the share of the exact 10 nearest (from Exact()) that Search() returns.

Element typeBuildFileBytes a nodeExact() a query
float324,760 vectors/s34.9 MB6881.93 ms
float163,430 vectors/s25.8 MB4962.91 ms
int83,400 vectors/s21.4 MB4044.14 ms
Element typeSearch() ef 32: p50 / p99 / recall@10ef 64ef 128
float3267 / 109 µs / 0.976100 / 141 µs / 0.998131 / 170 µs / 1.000
float1682 / 123 µs / 0.976115 / 166 µs / 0.998145 / 206 µs / 1.000
int892 / 125 µs / 0.977123 / 173 µs / 0.998164 / 224 µs / 1.000

What the numbers show:

5. Day files searched as one (gxVectorSet)

Ten day files of 10,000 vectors each (dimension 96, cosine), listed in one .vixset manifest, 500 queries, k 10, ef 64.

Searchp50p99Files opened
Every day, 1 thread0.70 ms0.97 ms10
Every day, 4 threads0.34 ms0.77 ms10
One day (a day range)0.05 ms0.09 ms1

A day range is answered from the manifest first: each listed file keeps the range of its day tag, so the nine other days are skipped without being opened. Searching the set with several threads splits the files between them.

6. TLS over the loopback (gxsTLSServer, gxsTLSConnection)

A server thread and a client in one process over 127.0.0.1, with the certificates utils/objrepl/objrepl_certs.sh PKI_DIR --copy-host 127.0.0.1 makes (RSA 3072, a CA and a server and a client certificate), 100 handshakes each way and 512 MB sent in each write size. Measured 11/17/2026 on the same machine with OpenSSL 3.5.8, outside a container, at a 1-minute load of 6 to 9 (other builds running), so treat these as a floor.

HandshakeRatep50p99
Server certificate112 a second5.74 ms42.2 ms
Server and client certificates94 a second9.34 ms16.7 ms
Send() sizeThroughput, to the server's ack
4 KB465 MB/s
64 KB923 MB/s
1 MB1,050 MB/s

A handshake is mostly the RSA signature, so a long-lived connection (what gxObjRepl and object_server keep) pays it once. Small writes cost more because each Send() is at least one TLS record with its own header and tag; writes of 64 KB and more fill 16 KB records. On Windows the same section runs over Schannel.

The techniques behind the numbers

Compared with typical technologies for the same jobs, which often put records, indexes and vectors in separate services, DataReel keeps them in ordinary files of one library in the application's own process: no network hop and no second copy of the data for the vectors, at the price of running everything on one machine (or a replicated copy, see the replication administrator's guide).

Running it yourself

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target dr_bench
build/utils/dr_bench /path/on/the/disk/to/measure
utils/objrepl/objrepl_certs.sh pki --copy-host 127.0.0.1 --apply
build/utils/dr_bench /path/on/the/disk/to/measure --tls pki       # with section 6

Give it a folder on the disk you want measured: a durable commit's time is that disk's sync time. The work folder is removed at the end.