Incremental writes.
Measured trade-offs.
Record-level encoding changes what a save has to do. We measured it against the published 0.4.0 wheel and the retained format-2 path, then ran full SIFT1M and GloVe-100 f32/int8 search sweeps.
The raw measurements are from 0.5.0-dev.1, whose engine implementation is retained for 0.5.0. These are historical measurements, not new 1.0.0 results. Their original build hashes and samples are preserved; these are not fresh timings of every shipped release binary.
Apple M3 Max · 36 GiB RAM · macOS 27.0.1 · Python 3.13.15
Optimized Rust builds · four build threads · warm OS cache · automatic checkpoint scheduling disabled
Historical 0.5.0-dev.1 measurements, not new 1.0.0 results. Warm-cache native saves with automatic scheduling disabled; 100,000 synthetic f32 records. These save latencies are not HTTP serving guarantees.
p50 · replacement save
p50 · delete save
p50 · clean save
What one save costs
Median of three per-process p50 measurements. Mutation time is separate. Each process runs 20 replacements, then 20 deletes, then 20 clean saves, without a checkpoint between phases.
| Configuration | replacement save · ms | delete save · ms | clean save · ms |
|---|---|---|---|
| Recern 0.4.0format 2 · 100,000 f32 | 1,092.946p50 | 1,409.96p50 | 1,209.893p50 |
| Recern 0.5.0.dev1format 2 · 100,000 f32 | 1,072.921p50 | 1,403.322p50 | 1,242.448p50 |
| Recern 0.5.0.dev1format 3 · 100,000 f32 | 5.231p50 | 4.905p50 | 0.088p50 |
Legacy-format results include replaying the WAL history accumulated in preceding phases. This is a warm-cache native save protocol with automatic maintenance disabled, not a production default-policy or HTTP latency comparison. Collection catalog work and occasional checksum-tree growth remain outside a constant-cost promise.
All persistence cases
Each configuration has three fresh processes and newly built databases: 54 isolated cases in total. Format-3 single-record deletes appended 8,268 WAL bytes and validated 4,124 bytes at every measured size, encoding one record and changing two pages.
| Records / precision | Version / format | Replace p50 | Delete p50 | Clean p50 | Peak process RSS |
|---|---|---|---|---|---|
| 1,000f32 | 0.4.0format 2 | 15.604 ms | 18.066 ms | 13.007 ms | 0.11 GiB |
| 1,000f32 | 0.5.0.dev1format 2 | 15.287 ms | 17.974 ms | 13.081 ms | 0.11 GiB |
| 1,000f32 | 0.5.0.dev1format 3 | 4.784 ms | 4.102 ms | 0.065 ms | 0.06 GiB |
| 1,000int8 | 0.4.0format 2 | 14.721 ms | 20.99 ms | 16.187 ms | 0.15 GiB |
| 1,000int8 | 0.5.0.dev1format 2 | 14.68 ms | 20.097 ms | 15.706 ms | 0.15 GiB |
| 1,000int8 | 0.5.0.dev1format 3 | 5.105 ms | 4.021 ms | 0.054 ms | 0.06 GiB |
| 10,000f32 | 0.4.0format 2 | 110.57 ms | 144.886 ms | 123.253 ms | 0.83 GiB |
| 10,000f32 | 0.5.0.dev1format 2 | 108.45 ms | 141.521 ms | 122.453 ms | 0.92 GiB |
| 10,000f32 | 0.5.0.dev1format 3 | 4.576 ms | 4.992 ms | 0.078 ms | 0.21 GiB |
| 10,000int8 | 0.4.0format 2 | 106.853 ms | 168.324 ms | 156.494 ms | 1.24 GiB |
| 10,000int8 | 0.5.0.dev1format 2 | 104.489 ms | 167.335 ms | 155.391 ms | 1.24 GiB |
| 10,000int8 | 0.5.0.dev1format 3 | 5.28 ms | 4.905 ms | 0.077 ms | 0.18 GiB |
| 100,000f32 | 0.4.0format 2 | 1,092.946 ms | 1,409.96 ms | 1,209.893 ms | 5.7 GiB |
| 100,000f32 | 0.5.0.dev1format 2 | 1,072.921 ms | 1,403.322 ms | 1,242.448 ms | 5.77 GiB |
| 100,000f32 | 0.5.0.dev1format 3 | 5.231 ms | 4.905 ms | 0.088 ms | 1.54 GiB |
| 100,000int8 | 0.4.0format 2 | 1,033.082 ms | 1,614.545 ms | 1,578.224 ms | 7.36 GiB |
| 100,000int8 | 0.5.0.dev1format 2 | 1,028.816 ms | 1,663.614 ms | 1,581.286 ms | 8.81 GiB |
| 100,000int8 | 0.5.0.dev1format 3 | 5.031 ms | 4.946 ms | 0.06 ms | 1.38 GiB |
Recall and single-query throughput
SIFT1M: 1,000,000 × 128, L2. GloVe-100: 1,183,514 × 100, cosine. Each precision builds one index, then runs three loops over the same 1,000 queries, top-10, with 100 warmup queries per loop. This measures query-loop variation rather than build-to-build uncertainty.
Int8 includes quantization error against the original vectors. It did not accelerate search in these runs. Recall below 99% within this ef sweep is an observed result, not a theoretical ceiling.
Throughput at measured recall targets
Each cell selects the fastest measured setting reaching the target. No interpolation. p95 belongs to the same setting. “Not reached” means the measured sweep did not reach that target.
SIFT1M
| Precision | Recall ≥ 0.90 | Recall ≥ 0.95 | Recall ≥ 0.99 |
|---|---|---|---|
| Recern f32 | 13,737 /sef=40 · p95 0.095 ms | 8,514 /sef=80 · p95 0.138 ms | 4,574 /sef=160 · p95 0.265 ms |
| Recern int8 | 4,722 /sef=40 · p95 0.296 ms | 2,794 /sef=80 · p95 0.487 ms | not reached |
GloVe-100
| Precision | Recall ≥ 0.90 | Recall ≥ 0.95 | Recall ≥ 0.99 |
|---|---|---|---|
| Recern f32 | 1,986 /sef=320 · p95 0.686 ms | 512 /sef=1280 · p95 2.583 ms | not reached |
| Recern int8 | 987 /sef=320 · p95 1.336 ms | 267 /sef=1280 · p95 5.392 ms | not reached |
Memory, file padding and recovery
The database, graph and encoded pages remain in RAM. A small record occupies at least one 4,096-byte page. Int8’s smaller vector payload does not guarantee a smaller file or lower total process peak.
SIFT1M
| Precision | Build | Bulk save | Checkpoint | Warm reopen | Snapshot | Vector payload | Peak process RSS |
|---|---|---|---|---|---|---|---|
| Recern f32 | 103.14 s | 22.61 s | 3.63 s | 47.05 s | 3.81 GiB | 488.3 MiB | 12.98 GiB |
| Recern int8 | 294.84 s | 22.21 s | 3.44 s | 47.34 s | 3.81 GiB | 125.9 MiB | 11.95 GiB |
GloVe-100
| Precision | Build | Bulk save | Checkpoint | Warm reopen | Snapshot | Vector payload | Peak process RSS |
|---|---|---|---|---|---|---|---|
| Recern f32 | 153.05 s | 28.52 s | 5.54 s | 56.04 s | 4.51 GiB | 451.5 MiB | 12.55 GiB |
| Recern int8 | 379.01 s | 25.41 s | 3.59 s | 52.07 s | 4.51 GiB | 117.4 MiB | 15.21 GiB |
RSS is the worker’s lifetime high-water mark, including Python/NumPy inputs, IDs, the index, cached pages, WAL/recovery buffers and allocator effects. Stage high-water values are cumulative, not isolated phase deltas. GloVe int8 reached 15.21 GiB. Open and checkpoint still process a full image; these numbers are not an out-of-core result or a server RAM budget.
Reproduce and inspect
- Native release builds, one query at a time through Python, including returned IDs; recall calculations stay outside the timer.
- HNSW m=16, ef construction=200; ef=10, 20, 40, 80, 160, 320, 640, 1280. Graphs are built once per precision and dataset, with four build threads.
- Persistence uses deterministic synthetic data (seed 20261104), 128-dimensional cosine vectors, three database sizes and 20 samples per phase per process. The table aggregates the median of three per-process statistics.
- Warm OS caches on a desktop without CPU/process isolation. Background activity, thermal state, filesystem and allocator behavior may change the result.
- No HTTP/Qdrant throughput, filters, concurrent load, cold-disk timings, power-loss guarantees or larger-than-memory operation is measured here. Functional recovery tests are separate.
persistence JSON · sift JSON · glove JSON · summary JSON · manifest JSON
Pinned requirements, complete method, plots and reproduction commands →
Measured source: b806ef1c2524d7ad296797ee016c71575b2ce832
Harness SHA-256: bd5a894ec4fdf3c1c635aad64d54137a04f4a335636438068bb36502ffc203c0
Historical comparisons
The 0.4.0 comparison with faiss and the pre-0.2.0 prototype report remain separate. Their engine versions, construction protocols and measurements are preserved.