GUI, CLI, and benchmarks · Engineering

How to read a database benchmark

Host differences, client overhead, cache effects, data shape, and the questions a benchmark table does not answer.

A benchmark table is a set of measurements, not a verdict. The useful question is not “which number is bigger?” but “what exactly was measured, on what hardware, with what data, and with which client?”

NonoDB publishes its methodology because several results are easy to misread.

Start with the host

The published runs use different machines:

Run Host Filesystem Version
1B dense documents 16 vCPU Xeon D-2141I, 31 GiB RAM ZFS mirror, 438 GB v0.27.0
100M ANN sidecar same class ZFS, 438 GB v0.28.0
500k engine comparison same class ZFS, 438 GB v0.28.0
Graph vs Neo4j 8 vCPU Haswell, 22 GiB RAM ext4 v0.32.0

Do not compare rows from different hosts as if they came from one controlled run. The 100M comparator in the 1B table comes from an older ext4 host.

Check what the client includes

NonoDB’s measurements are end-to-end through the daemon and Python client over a Unix socket, unless stated otherwise. Release builds only. Writes use durable group commit with real fsync. Latency includes JSON, transport, and client decoding.

That is a realistic application path, but it is not the same as an in-process microbenchmark. A number measured inside the storage engine will be lower than a number measured through HTTP and JSON.

Watch for cache effects

The daemon caches identical reads for 5 seconds by default. Repeatedly timing the same query with the cache enabled measures a cache hit, not search or scan performance.

Search benchmarks use limit=10 and NONODB_CACHE_TTL=0 unless noted. The 1B raw-read test used a unique comment value each iteration so repeated calls did not become cache hits.

If a benchmark does not state its cache settings, treat the numbers as ambiguous.

Look at the data shape

The 1B run uses minimal documents with only _id and n = i % 1000, no secondary indexes. It measures ingest, count, full scan, _id lookup, and raw reads. It does not measure payload-heavy documents, index-build time, or search.

The 100k time-series comparison uses 10 series, 8 columns, and a specific query mix. The 206M OHLC dataset has different row counts and query shapes.

A benchmark on tiny documents can look excellent on ingest and terrible on payload-heavy updates. A benchmark on one query shape says nothing about another.

Separate throughput from latency

Metric What it answers
Bulk load rows/s Sustained ingest
p50 latency Typical request
p95/p99 latency Tail behavior
Counts O(1) metadata operations
Full scan Linear work over data
RSS Pages touched, not heap

A system can have high throughput and bad p99. A system can have low p50 and a long tail under concurrency. Read the percentiles, not only the average.

The 1B results, read carefully

  • Load throughput was 180,064 docs/s on ZFS; the 100M comparator did 211,845 docs/s on ext4.
  • The 1B data.mdb was 46 GB; RSS after load was 13.7 GB, and virtual size was about 103 GB because of the 96 GiB map.
  • count({}) was 0.002 s.
  • _id lookup p50/p95/p99 was 0.87 / 1.27 / 1.50 ms.
  • A full scan count({"n": 0}) took 625.6 s because the data did not fit in RAM.
  • Raw JSON find at limit 10,000 was 7.13 ms p50, about 3× faster than the projection path at 21.85 ms.

The scan number is not a failure of the database; it is 46 GB read from storage. The lookup number is flat because _id is the primary key.

The 100M vector result

The exact path scans every vector and is CPU/I/O bound. On 100M vectors, the IVF sidecar cut exact p50 from about 468 ms to 5.35 ms at the reader and 6.30 ms through the daemon.

That is a large improvement for that workload, not a universal vector-search claim. Filtered queries and oversized deltas still use exact scans.

The graph comparison

On a 2,000-node, 8,000-edge deterministic graph, NonoDB reported lower latency than Neo4j Community for ingest, traversal, shortest paths, and Cypher patterns. The caveats are explicit: NonoDB used a Unix socket while Neo4j used HTTP/Cypher; Neo4j returned counts/IDs while NonoDB materialized projected documents; the graph is small; Neo4j Community is single-node.

A small graph comparison is evidence about that graph, not about every graph workload.

Questions a table does not answer

  • What happens at 10× the data?
  • What happens with concurrent writers?
  • What happens when the cache is cold?
  • What happens after a failover?
  • What happens with a slow disk?
  • What is the p99 under sustained load?
  • How long does an index build take?
  • How much disk does a backup need?

Run the workload you care about on your hardware. Use the published methodology as a starting point, not a substitute.

Reproducing

The repository includes scripts under scripts/ and commands for dense load, time-series, search, vector, and graph benchmarks. Use a real disk, not tmpfs, and a release build.

The benchmark guide has the full environment, methodology, caveats, and reproduction commands.

All engineering notes →Read the docs