Skip to content

Evidence

Experimental. The API is not stable and nothing here is wired into a database engine yet. What may change.

This page lists the studies behind what the repository says about tiervec: the question, what the result does and does not claim, the commit it ran on, the command, and the result files. The files hold numbers only, and the tables here are printed from them by scripts/evidence_tables.py:

uv run scripts/evidence_tables.py --check

A study is listed when its files are in the repository.

Study Data Result files
#106, generated data clustered Gaussian, 768 dimensions, 100,000 and 1,000,000 vectors results/106/synthetic/
#106, real embeddings DBpedia entities, OpenAI embeddings cut to 768 dimensions, 100,000 and 999,000 vectors results/106/real/

#106, generated data

Field Content
Question Does recall at the default ef hold from 100,000 to 1,000,000 vectors, and if not, is it the merge or the build parameters?
Claims recall@10 of the tier against an exact scan on one generated distribution, one run per arm. On this data the default build loses recall at 1,000,000 vectors, a larger M and efConstruction win much of it back, and one rebuilt segment in place of adds and merges does not.
Does not claim Any speed: each arm ran once, on four low-power cores of a laptop that may have run other work, so the latency columns show a direction only. Nothing about real embeddings: the run on real embeddings did not show this drop. Nothing about other dimensions, filters that follow the vectors, other hardware, or a write rate the tier can sustain (the writers were throttled).
Data Generated by the harness from seed 42: 100 clusters, sigma 0.4, cosine (the data).
Pin Commit 70d5dee, JDK 25. Each file names the processor, its flags, the memory, the JVM arguments, and every option.
Command Check out the commit, compile the harness as in Run it, then run one of the commands below.
Order The first two runs came first. The three runs of the follow-up (d1 to d3) were defined after the drop was seen, and before they ran.
Reading the files The three files of the follow-up have two unfiltered cells at ef 100, one from the main run and one from the later sweep. Their recall agrees, and the tables show the cell of the sweep, as the tables in #106 did.
Edits to the files In the PARAMS line of each file, the two local paths (out and repo) are replaced. Nothing else is changed.

The runs

File Date (UTC) Commit JDK Queries Timed passes Data checksum Heap Wall seconds
h100k-smoke-jdk25.txt 2026-11-12 70d5dee6c3 25.0.5 100 3 4a4aeb27 -Xmx4g 176
h1m-jdk25.txt 2026-11-12 70d5dee6c3 25.0.5 200 5 4a4aeb27 -Xmx13g 2285
h1m-diag-d1-jdk25.txt 2026-11-12 70d5dee6c3 25.0.5 200 5 4a4aeb27 -Xmx13g 1386
h1m-diag-d2-jdk25.txt 2026-11-12 70d5dee6c3 25.0.5 200 5 4a4aeb27 -Xmx13g 3455
h1m-diag-d3-jdk25.txt 2026-11-12 70d5dee6c3 25.0.5 200 5 4a4aeb27 -Xmx13g 947

Unfiltered search by ef: 100,000 against 1,000,000

ef recall@10 100k recall@10 1M p50 ms 100k p50 ms 1M
20 0.9380 0.2685 2.12 1.65
50 0.9920 0.4125 3.67 3.21
100 1.0000 0.5830 6.47 5.71
200 1.0000 0.7490 11.71 11.49
400 1.0000 0.8840 19.27 18.78

Filtered search at ef 100, 1,000,000 vectors: walk against scan-first

Allowed share recall walk p50 ms walk recall scan-first p50 ms scan-first p50 ratio, scan-first / walk
0.5 0.7265 11.85 1.0000 144.22 12.17
0.1 0.9460 20.09 1.0000 41.67 2.07
0.01 0.9670 32.06 1.0000 7.60 0.24
0.001 1.0000 49.04 1.0000 3.58 0.07

Build

100k 1M
add seconds 42.2 376.3
settled seconds 66.7 1175.7
seals 13 126
merges 1 1
segments at the end 8 8
back-pressure waits 163960 1464770

Concurrent phase, 1,000,000 vectors

value
seconds 600
writer threads, search threads 2, 2
adds per second (the writers were throttled to) 500 (500)
deletes per second 100
searches per second 219
search p50 ms 8.04
live vectors at the end, expected 1239998, 1239998
recall@10 afterwards, idle, 100 queries 0.6640

Follow-up at 1,000,000 vectors: recall@10 by ef

ef 1M d1: same build again d2: M 32, efConstruction 400 d3: one rebuilt segment
20 0.2685 0.2520 0.4440 0.2310
50 0.4125 0.4010 0.6745 0.4075
100 0.5830 0.5780 0.8385 0.5700
200 0.7490 0.7385 0.9580 0.7320
400 0.8840 0.8820 0.9945 0.8855
800 0.9575 0.9990 0.9450
1600 0.9730 1.0000 0.9720
3200 0.9760 1.0000 0.9745

Follow-up: p50 ms by ef

ef 1M d1: same build again d2: M 32, efConstruction 400 d3: one rebuilt segment
20 1.65 1.56 3.47 0.43
50 3.21 2.88 6.01 0.86
100 5.71 5.10 9.81 1.40
200 11.49 10.12 16.28 2.30
400 18.78 16.77 23.40 3.73
800 23.89 27.96 5.38
1600 33.17 33.59 6.31
3200 37.13 39.04 7.61

Smallest ef of the sweep with recall@10 of at least 0.95: 1M: none, d1: same build again: 800, d2: M 32, efConstruction 400: 200, d3: one rebuilt segment: 1600.

Follow-up: build

1M d1: same build again d2: M 32, efConstruction 400 d3: one rebuilt segment
add seconds 376.3 367.5 987.4 868.2
settled seconds 1175.7 1153.9 3177.4 868.2
seals 126 126 126 0
merges 1 1 1 0
segments at the end 8 8 8 1
back-pressure waits 1464770 1434036 3888979 0

Commands

h100k-smoke-jdk25.txt:

java -Xmx4g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --host-label my-machine --out results/h100k-smoke-jdk25.txt \
  --n 100000 --dim 768 --queries 100 --reps 3 --shares 0.1,0.01 --scan-below 0,1 --conc-seconds 60 --conc-window-s 15 --write-rate 300 --delete-rate 60 --final-queries 50 --min-recall 0.9 --min-scan-recall 0.99

h1m-jdk25.txt:

java -Xmx13g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --host-label my-machine --out results/h1m-jdk25.txt \
  --n 1000000 --dim 768 --conc-seconds 600

h1m-diag-d1-jdk25.txt:

java -Xmx13g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --host-label my-machine --out results/h1m-diag-d1-jdk25.txt \
  --n 1000000 --dim 768 --conc-seconds 0 --shares 0.01 --scan-below 0 --ef-sweep 20,50,100,200,400,800,1600,3200

h1m-diag-d2-jdk25.txt:

java -Xmx13g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --host-label my-machine --out results/h1m-diag-d2-jdk25.txt \
  --n 1000000 --dim 768 --conc-seconds 0 --shares 0.01 --scan-below 0 --ef-sweep 20,50,100,200,400,800,1600,3200 --efc 400 --m 32

h1m-diag-d3-jdk25.txt:

java -Xmx13g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --host-label my-machine --out results/h1m-diag-d3-jdk25.txt \
  --n 1000000 --dim 768 --conc-seconds 0 --shares 0.01 --scan-below 0 --ef-sweep 20,50,100,200,400,800,1600,3200 --load rebuild

#106, real embeddings

Field Content
Question Does recall at the default ef hold from 100,000 to 1,000,000 real vectors, and what do a larger M and efConstruction change?
Claims recall@10 of the tier against exact answers on one real set, one build per arm. On this set the default build loses little recall from 100,000 to 999,000 vectors: the difference at ef 100 is under the bar that was written before the runs (the differences), so the drop seen on the generated data did not appear here. The larger build had higher recall at 1M at ef 100 and took longer to settle.
Does not claim Any speed: each arm was built once, on six efficiency cores with turbo off, in a run that was not a timed study and may have shared the machine with other work, so the latency columns show a direction only. Nothing about other real sets, the native 1,536 dimensions, other hardware, filters that follow the vectors, writes that run beside searches (these runs have no concurrent phase), or the right defaults for other data. Recall is a mean over the queries: single queries do much worse (the lowest). A build is not bit-for-bit repeatable, because seals run on background threads, and no arm was built twice.
Data The DBpedia entities set with OpenAI text-embedding-3-large embeddings (1,536 dimensions, 1,000,000 rows). Every vector is cut to its first 768 coordinates and then scaled to length 1. 1,000 rows are held out as queries (seed 42), which leaves an index of 999,000 vectors, called 1M here. The 100,000-vector index (100k) is a uniform random subset of those rows (seed 42) with the same queries and its own exact answers. The vectors and the texts are not in the repository: the texts carry a share-alike licence.
Pin Commit 70b64f2, JDK 25. Its src/main is the same as at the commit of the generated-data runs. Each file names the processor, its flags, the memory, the JVM arguments, every option, and the data checksum.
Preparing the data scripts/prep_real_dataset.py of the pinned commit converts the set at its full dimension (Real data). The cut to 768 coordinates and the subset were made by a study script that imports it, prep_set.py; its usage is at the top of the file. The DATASET line of each file records both rules and the checksum of the imported script. I published the script as a record and have not run it from the repository, so I do not claim that it rebuilds these data files from a fresh checkout.
Command Check out the commit, compile the harness as in Run it, put the prepared data under data/, then run one of the commands below. The runs were pinned to cores 12 to 17 from outside the command.
Order The three arms and the bar were written down before the first run, and the arms ran in the order of their names.
Reading the files Each file has two unfiltered cells at ef 100, one from the main run and one from the later sweep. In the two 1M files their recall agrees. In the 100k file it does not (both cells). The tables show the cell of the sweep, as the tables in #106 did, and the difference from 100k to 1M is under the bar with either cell. The 100k build ended with vectors still in the exact tail and the 1M builds did not; the file does not record whether the tail changed between its two cells.
Edits to the files In each file the host label (in the RUN and PARAMS lines) and the local paths (data, out, and repo in the PARAMS line, path in the DATASET line) are replaced. Nothing else is changed.

The runs on real data

File Date (UTC) Commit JDK Vectors Queries Timed passes Data checksum Truth check Cores Heap Wall seconds
a0-real100k-def.txt 2026-11-23 70b64f2e34 25.0.5 100000 1000 3 571a6076 1.0000 12-17 -Xmx13g 843
a1-real1m-def.txt 2026-11-23 70b64f2e34 25.0.5 999000 1000 3 20cd553c 1.0000 12-17 -Xmx13g 2923
a2-real1m-efc400-m32.txt 2026-11-23 70b64f2e34 25.0.5 999000 1000 3 20cd553c 1.0000 12-17 -Xmx13g 6898

Recall@10 by ef on real data

ef 100k 1M 1M: M 32, efConstruction 400
20 0.9532 0.8788 0.9375
50 0.9849 0.9488 0.9818
100 0.9943 0.9763 0.9931
200 0.9987 0.9899 0.9976
400 0.9993 0.9946 0.9994
800 0.9997 0.9974 0.9995
1600 0.9999 0.9986 0.9998
3200 1.0000 0.9995 0.9999

Smallest ef of the sweep with recall@10 of at least 0.95: 100k: 20; 1M: 100; 1M: M 32, efConstruction 400: 50.

Lowest recall@10 of a single query, by ef

ef 100k 1M 1M: M 32, efConstruction 400
20 0.40 0.00 0.00
50 0.60 0.00 0.40
100 0.70 0.30 0.60
200 0.80 0.60 0.70
400 0.90 0.60 0.90
800 0.90 0.70 0.90
1600 0.90 0.80 0.90
3200 1.00 0.90 0.90

p50 ms by ef on real data (a direction only)

ef 100k 1M 1M: M 32, efConstruction 400
20 2.78 2.36 4.08
50 3.40 4.62 7.89
100 5.75 7.68 12.73
200 9.48 12.65 19.84
400 16.00 21.27 30.80
800 25.60 33.12 44.99
1600 38.19 49.91 63.98
3200 54.87 72.84 92.87

The two cells at ef 100

Arm recall@10, main run recall@10, sweep p50 ms, main run p50 ms, sweep
100k 0.9957 0.9943 8.41 5.75
1M 0.9763 0.9763 7.71 7.68
1M: M 32, efConstruction 400 0.9931 0.9931 12.82 12.73

Differences at ef 100

Difference in recall@10 sweep cells main-run cells
100k minus 1M, default build 0.0180 0.0194
M 32, efConstruction 400 minus default build, at 1M 0.0168 0.0168

The bar for no drop with size, written before the runs: a difference of at most 0.03 from 100k to 1M.

Filtered search at ef 100, allowed share 0.01

100k 1M 1M: M 32, efConstruction 400
recall@10 1.0000 0.9953 0.9962
p50 ms (a direction only) 21.59 59.70 57.79

Build on real data

100k 1M 1M: M 32, efConstruction 400
load seconds of the files 0.5 3.8 4.3
add seconds 44.8 481.0 985.2
settled seconds 83.5 1697.1 5374.9
seals 13 126 126
merges 1 1 1
segments at the end 8 8 8
vectors in the tail at the end of the build 1998 0 0
back-pressure waits 174247 1878981 3889316
peak resident MB 1656 13651 13658
wall seconds of the run 843 2923 6898

Commands on real data

a0-real100k-def.txt:

java -Xmx13g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --data data/real100k --host-label my-machine --out results/a0-real100k-def.txt \
  --queries 1000 --reps 3 --ef-sweep 20,50,100,200,400,800,1600,3200 --shares 0.01 --scan-below 0 --build-threads 3 --conc-seconds 0

a1-real1m-def.txt:

java -Xmx13g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --data data/real1m --host-label my-machine --out results/a1-real1m-def.txt \
  --queries 1000 --reps 3 --ef-sweep 20,50,100,200,400,800,1600,3200 --shares 0.01 --scan-below 0 --build-threads 3 --conc-seconds 0

a2-real1m-efc400-m32.txt:

java -Xmx13g --add-modules jdk.incubator.vector -cp target/bench/classes ai.humem.tiervec.Bench \
  --data data/real1m --host-label my-machine --out results/a2-real1m-efc400-m32.txt \
  --queries 1000 --reps 3 --ef-sweep 20,50,100,200,400,800,1600,3200 --shares 0.01 --scan-below 0 --build-threads 3 --conc-seconds 0 --efc 400 --m 32