Competitive Analysis

This page keeps two kinds of figure apart.

  • Measured here. LatticeDB and SQLite, on the same machine, over the same generated data, each through its own public C API with comparable durability settings, by the same program. These are the only comparative numbers this project stands behind.
  • Cited from others. Figures other projects and authors published for their own systems, on their own hardware and data. They were never measured here and are not comparable to each other or to LatticeDB; they are listed for orientation, with their sources, in a separate section and never in one table with ours.

Measured here: LatticeDB and SQLite

LatticeDB 0.17.0 and SQLite 3.51.0 (the system library of macOS 26.5), Apple M5, 2026-11-13, zig build capi-benchmark -- --suite core --suite sqlite. Both keep a write-ahead log and fsync it on every commit (LatticeDB's default; SQLite with journal_mode=WAL, synchronous=FULL), neither asks the drive to flush its cache (fullfsync off on both), and both have a 100 MB page cache. SQLite runs prepared statements; reads run inside BEGIN/COMMIT, as LatticeDB's run inside a read transaction. Medians of five runs.

The data is the same on both sides: Person rows or nodes with an indexed integer uid and a short name, and 5 KNOWS edges out of each to random others (a knows(src, dst) table indexed on src for SQLite).

WorkloadLatticeDBSQLite
One insert, one commit: p5044 us42 us
One insert, one commit, normal / synchronous=NORMAL: p506.4 us9.8 us
Inserts in transactions of 1,000332,000/s1,840,000/s
Lookup by indexed uid, 100K: p502.3 us (Cypher)3.0 us
1 hop, 10K nodes: p502.5 us2.5 us
2 hops, 10K nodes: p504.4 us5.4 us
3 hops, 10K nodes: p5014 us14 us
Paths of 1 to 5 hops, 10K nodes (3,904 paths): p50472 us1,038 us
1 hop, 100K nodes: p504.8 us3.6 us
2 hops, 100K nodes: p508.8 us8.9 us
2 hops, distinct end nodes, 100K: p506.7 us18 us
3 hops, 100K nodes: p5021 us29 us
Paths of 1 to 5 hops, 100K nodes (3,905 paths): p50600 us1,361 us

The hop queries are MATCH (a:Person {uid: $uid})-[:KNOWS]->()-[:KNOWS]->(c) RETURN count(c) and the like against joins of knows on itself; the 1-to-5 row is -[:KNOWS*1..5]-> against a recursive CTE with UNION ALL. Both count the same paths (SQLite's walk may reuse an edge, which Cypher's may not; that differs by one path in 3,905). The single-commit p50s are within each other's run-to-run spread (SQLite's runs ranged 39–50 us, LatticeDB's 44–45 us); 20,000 commits a run.

The insert row is the one the release after 0.18.1 changes. Measured on that build on 2026-11-22, in a new format-5 file, LatticeDB created 408,000 nodes a second in transactions of 1,000 (0.18.1 beside it: 319,000), and SQLite inserted 1,850,000 rows a second in the same session. SQLite is still four to five times faster at inserts.

Read this plainly: for one to three hops from an indexed starting point, an indexed SQLite join is as fast as LatticeDB's Cypher. LatticeDB is about twice as fast enumerating longer paths, and SQLite inserts rows several times faster than LatticeDB creates nodes (a LatticeDB node writes a node record, a label index entry, two property records and changefeed events, where SQLite writes a row and an index entry). See LatticeDB vs SQLite for when each is the better choice.

Earlier editions of this page compared SQLite with LatticeDB's in-process Zig traversal over an adjacency cache, with LatticeDB's log off and SQLite doing more work per query (deduplication, a type filter). Queries, the C API and the bindings never use that cache, so those rows (including the depth-limited "2,819x") are withdrawn.

Cited from others

Collected for this documentation between December 2025 and August 2026 and not re-checked since; each figure is the source's own, for its own system, hardware, data and settings. None was measured here. LatticeDB's own figures are on Benchmarks.

Point lookups

SystemPublished figureSource
RocksDB (in-memory workload)0.14 usRocksDB wiki
SQLite (in-memory)~0.2 usTurso blog
SQLite (WAL, on disk)3 us (p90)marending.dev
Neo4j (server)28 ms (p99)Memgraph comparison

Vector search, 10 nearest neighbours at about 1M vectors

SystemPublished figureTypeSource
FAISS HNSW (single thread)0.5–3 msLibraryFAISS wiki
Weaviate1.4 ms mean, 3.1 ms p99ServerWeaviate benchmarks
Qdrant~1–2 msServerQdrant benchmarks
Milvus + SQ82.2 ms p99ServerVectorDBBench
pgvector HNSW~5 ms at 99% recallExtensionJonathan Katz
LanceDB3–5 msEmbeddedLanceDB blog
Chroma4–5 ms meanEmbeddedChroma docs
Pinecone P2~15 ms including networkCloudPinecone blog
sqlite-vec (brute force)17 msExtensionAlex Garcia

These were measured mostly on public datasets (SIFT, GloVe and the like) at recalls the sources chose; LatticeDB's vector figures are on synthetic clustered vectors, so even a figure at the same scale is not a comparison.

Graph traversal

SystemPublished figureSource
Kùzu (archived October 2025)19 ms, 2-hop, 100K nodesThe Data Quarry
Neo4j10 ms, 1M nodesNeo4j blog
SystemPublished figureSource
SQLite FTS5under 6 msSQLite Cloud

Rows that earlier editions gave without a source (Elasticsearch "1–10 ms", Tantivy "10–100 us") are removed.