InventDB

Benchmarks: encrypted, at 10 million rows.

Query and transaction benchmarks over 10 million rows, run in the shipping configuration with AES-256 encryption on, against PostgreSQL 18 and SQLite. Built-in capabilities are compared separately, against PostgreSQL, MongoDB and SQLite.

Two platforms, measured separately and published separately. How we test →

60.7s
143-query set over 10M rows: single client, cold
17.4s
the same 143 queries, warm: a repeat of every one
3,551
queries in the full SQL battery, across 28 categories
10M
records on one encrypted 2-vCPU server

Measured on the dedicated ARM fleet: one Graviton machine per engine, identical spec, the same 10M-record dataset. InventDB runs with AES-256 encryption on. Cold = a query's first execution on an established connection; warm = a repeat of the same query. InventDB’s figures are from v1.011, measured in November 2026. The PostgreSQL and SQLite figures are from August 2026, on machines of the same spec over the same dataset; those two engines were not measured again.

InventDB v1.011, November 2026 · PostgreSQL and SQLite, August 2026

143-query shared set

The same 143 queries in each engine's dialect, over 10 million rows: 2.5M across each of four types. Figures are cold / warm milliseconds summed per category. InventDB runs with AES-256 encryption on; PostgreSQL 18 and SQLite run unencrypted at their tuned defaults, with an index on every column.

143-query shared set · single client · cold / warm ms per category
Category Queries InventDB (in-process)cold / warm msInventDB (client/server)cold / warm msPostgreSQLcold / warm msSQLitecold / warm ms
Basic SELECT7226 / 3652 / 42406 / 398137 / 11
Complex54,784 / 3,1103,470 / 3,3666,629 / 6,53227,810 / 27,617
Compound WHERE125,767 / 322767 / 613999 / 9939 / 5
Distinct6599 / 379364 / 3482,351 / 2,341221 / 216
Edge Case8165 / 4150 / 45504 / 402661 / 657
Exact Match7305 / 881 / 204 / 31 / 0
GROUP BY142,296 / 694857 / 7047,149 / 7,13619,439 / 20,401
GROUP BY+WHERE413,066 / 242255 / 2641,143 / 1,1437,901 / 7,687
HAVING4478 / 484485 / 4512,875 / 2,9127,878 / 7,841
JOIN 2-table1216,549 / 2,9623,376 / 3,36011,673 / 11,40844,717 / 44,496
JOIN 3-table1111,249 / 7,3897,700 / 7,33260,062 / 59,440141,941 / 140,766
JOIN 4-table51,752 / 1,5301,723 / 1,66144,914 / 45,468107,183 / 107,148
LIKE81,169 / 57181 / 867 / 61 / 1
NULL Handling2270 / 1915 / 8111 / 9757 / 44
ORDER BY12923 / 62451 / 9748 / 45157 / 139
Pagination6240 / 1337 / 21266 / 24383 / 82
Range11270 / 1241 / 3012 / 55 / 1
Secondary Table9592 / 3846 / 39652 / 638548 / 525
Total, single client14360,702 / 17,39819,951 / 18,484139,807 / 139,209358,746 / 357,636
Total, 4 parallel clients143— / 47,927— / 48,906— / 383,428— / 1,051,993

Four clients run the whole set at once against one shared database; those figures are the average per client, so each engine does four times the work in the time shown. InventDB answers 143 of 143; SQLite answers 139. On a repeat, PostgreSQL has the lower time than InventDB client/server in 4 of the 18 categories (Exact Match, LIKE, ORDER BY and Range), and SQLite the lower time than InventDB in-process in 6 (Basic SELECT, Compound WHERE, Distinct, Exact Match, LIKE and Range).

InventDB v1.011, November 2026 · PostgreSQL and SQLite, August 2026

3,551-query full battery

The complete battery across 28 categories, same data and same machine class. Figures are cold / warm milliseconds summed per category.

3,551-query battery · single client · cold / warm ms per category
Category Queries InventDB (in-process)cold / warm msInventDB (client/server)cold / warm msPostgreSQLcold / warm msSQLitecold / warm ms
Basic SELECT481,116 / 7601,180 / 1,004534 / 507142 / 13
Complex451,866 / 1,5553,133 / 2,8876,970 / 6,9432,420 / 2,416
Compound WHERE1,86016,736 / 4,8329,319 / 8,5121,051 / 1,03914,769 / 14,720
COUNT DISTINCT4048,333 / 23,24325,062 / 23,07055,964 / 55,84512,836 / 12,888
DISTINCT52,043 / 833 / 211,118 / 1,1263 / 2
Exact Match2401,665 / 6042,811 / 1,644164 / 16447 / 39
GROUP BY202,492 / 1,2741,383 / 1,3187,765 / 7,76634,291 / 34,318
GROUP BY+WHERE18448,155 / 19,86724,561 / 21,25227,524 / 27,519112,133 / 112,296
HAVING1610 / 922 / 214,146 / 4,1562,743 / 2,743
IN / NOT IN14190 / 108319 / 1801,511 / 1,5092,116 / 2,117
JOIN + GROUP BY24,377 / 1,001942 / 9234,218 / 4,19011,413 / 11,388
JOIN + ORDER BY41,335 / 65575 / 648 / 52 / 1
JOIN 2-table93,190 / 1,2021,291 / 1,2351,509 / 1,2381,695 / 1,664
JOIN 3-table6194 / 117169 / 13511 / 72 / 2
JOIN 4-table177 / 2327 / 272 / 21 / 1
JOIN 5-table257 / 5167 / 548 / 71 / 1
LIKE1801,169 / 8422,097 / 1,62710,832 / 10,75517,327 / 17,305
Nested/Array3098 / 4462 / 59——
Nested/Object1028 / 714 / 14——
NULL Handling1610 / 318 / 12784 / 784333 / 332
ORDER BY161,525 / 27717 / 7010 / 202 / 1
ORDER BY multi649,013 / 6,0179,331 / 5,5794,016 / 4,01811,806 / 11,803
ORDER BY+WHERE3202,818 / 1,3924,474 / 2,356178 / 16958 / 49
Pagination801,874 / 2841,649 / 480162 / 15925 / 11
Projection28447 / 439515 / 5027 / 71 / 0
Range253888 / 4961,955 / 1,2201,182 / 1,1791,121 / 1,108
Scalar fn52579 / 541607 / 5907,526 / 7,50511,772 / 11,758
Secondary Table645 / 4359 / 60333 / 29663 / 10
Total, single client3,551150,330 / 64,85592,391 / 74,916137,534 / 136,915237,123 / 236,986
Total, 4 parallel clients3,551— / 148,418— / 176,382— / 347,439— / 574,517

InventDB answers 3,551 of 3,551; PostgreSQL and SQLite each answer 3,511. Two categories carry two thirds of InventDB’s in-process warm time here: COUNT DISTINCT at 36% and GROUP BY + WHERE at 31%. ORDER BY multi is next at 9%. On a first execution InventDB client/server has the lower total: 92.4 s against 137.5 s for PostgreSQL. On a repeat InventDB has the lower total, and PostgreSQL has the lower time in 13 of the 26 categories it ran, Compound WHERE, Exact Match and ORDER BY + WHERE among them. SQLite has the lower warm time than InventDB in-process in 13 of its 26, COUNT DISTINCT among them. All are published as measured.

Both execution modes

In-process and client/server

InventDB is the only engine here that runs both ways, so it is measured both ways. PostgreSQL has no in-process mode; SQLite has no server mode. Warm totals in seconds.

Warm totals by execution mode · seconds
Suite InventDBin-process InventDBclient/server PostgreSQLclient/server SQLitein-process
3,551 battery, 1 client64.974.9136.9237.0
3,551 battery, 4 clients148.4176.4347.4574.5
143-query set, 1 client17.418.5139.2357.6
143-query set, 4 clients47.948.9383.41,052.0

With one client the server layer adds 6% on the 143-query set (18.5 vs 17.4 s) and 16% on the 3,551-query battery (74.9 vs 64.9 s): an HTTP request and a JSON answer on every query, which weigh more where queries are short (a 143-set query averages 122 ms in-process, a 3,551-battery query 18 ms). Under four clients on the 143-query set it adds 2% (48.9 vs 47.9 s); on the 3,551-query battery it adds 19% (176.4 vs 148.4 s).

Transactions

TPC-C

Four warehouses, 10,000 transactions per leg, the full TPC-C mix. Durability matched across engines: PostgreSQL synchronous_commit=on, SQLite WAL with synchronous=FULL, InventDB checkpointing throughout. Transactions per second; higher is better.

TPC-C · 4 warehouses · transactions per second
Leg InventDBin-process InventDBclient/server PostgreSQLclient/server SQLitein-process
Sequential220.2107.8181.3387.6
4 threads441.1161.6360.0127.1
Scaling, 4 threads vs sequential2.00×1.50×1.99×0.33×
Transactions completed10,000 / 10,00010,000 / 10,00010,000 / 10,00010,000 / 10,000

Every engine completes all 10,000 transactions with zero errors, and every InventDB figure here comes from a run that passed all eleven exact-accounting identities: balances that must hold to the cent across warehouses, districts and customers, which the other engines do not check at all. SQLite's four-thread throughput falls below its own sequential figure: the single-writer model. PostgreSQL is ahead of InventDB client/server in both legs. In-process, SQLite is ahead with one client and InventDB with four threads. A TPC-C transaction is eight or more statements, so a client/server engine pays a round trip on every one of them.

How it compares

Built-in capabilities, side by side

A comparison of built-in capabilities: what ships in the box, without bolting on extra services. It is not a performance or pricing comparison. Verified July 2026 against official docs and release notes.

Built-in capabilities · verified July 2026
Capability InventDB PostgreSQL 18 MongoDB 8 (Community) SQLite
Data model
Schema-free JSON documentsBuilt inJSONBYesJSON1
SQL query languageBuilt inYes— (MQL)Yes
Nested objects & arraysBuilt inJSONBYesJSON1
Reliability
Full ACID transactionsBuilt inYesYesYes
Write-ahead log (WAL)Built inYesYes (journal)Yes
Self-healing corruption recoveryBuilt in— (manual)— (manual)— (manual)
Security & encryption
Encryption at restBuilt in— (disk/TDE)EnterpriseAdd-on (SEE)
Row-level value encryptionBuilt inAdd-on (pgcrypto)Yes (client keys)Add-on (SEE)
Encrypted, queryable indexesBuilt in—Yes (Queryable Enc.)—
Database-managed rotatable keysBuilt in— (external KMS)— (customer-managed)—
Role-based access controlBuilt inYesYes—
Indexing & performance
Automatic indexingBuilt in— (manual)— (manual)— (manual)
Built-in key-value cacheBuilt in———
Search
Exact-match searchBuilt inYesYesYes
Full-text (keyword) searchBuilt inYesYesYes (FTS5)
Fuzzy / typo-tolerant searchBuilt inAdd-on (pg_trgm)Add-on (Atlas Search)—
Semantic / vector searchBuilt inExtension (pgvector)Add-on (mongot)Extension (sqlite-vec)
Files & documents
Encrypted file storageBuilt in—— (GridFS unencrypted)—
Text extraction, 25+ formatsBuilt in———
Built-in OCR (image/PDF → text)Built in———
File version historyBuilt in———
Built-in AI agent
Natural-language Q&ABuilt inAdd-on (SQL-gen only)——
Multi-step analysis & reportsBuilt in———
Natural-language data editsBuilt in———
Scheduled reportsBuilt in———
Operations & deployment
Single binary, zero dependenciesBuilt in— (server)— (server + mongot)Yes
Driverless HTTP / REST APIBuilt inAdd-on (PostgREST)Add-on (Data API)—
Cross-platform (Win/Linux/macOS)YesYesYesYes
✓Full-text and keyword search exist in most of these: SQLite FTS5, PostgreSQL and MongoDB text all do it. What differs is the OCR + document-extraction + semantic pipeline in one database.
✓MongoDB 8 Queryable Encryption is a genuine analog for encrypted values and indexes. What differs is that InventDB's keys are database-managed and rotatable, spanning values, indexes, files and backups, with no client-side key handling.
✓For vector search and AI the framing is built in vs a bolt-on extension: pgvector, sqlite-vec and mongot are all excellent, but they're add-ons you install and operate.

Verified July 2026 against official docs and release notes; capabilities move fast, so confirm with each vendor.

The rig

One machine per engine

All three are AWS Graviton t4g.large instances: 2 vCPU, 8 GiB RAM, data on an EBS volume, the same shape customer instances run on, and not on a workstation with sixteen cores and a warm file cache.

The three benchmark machines · identical spec, one engine each
Machine Engine Configuration
InventDB rig InventDB, run both in-process and client/server AES-256 encryption on throughout, done with the processor's AES instructions. The columnar cache, the document cache, the sealed-page cache and memory-mapped sealed segments are all on: the shipping default, each sized by the server from the memory the machine reports rather than set by hand.
PostgreSQL rig PostgreSQL 18.4, client/server only synchronous_commit=on, shared_buffers=2GB, an index on every column.
SQLite rig SQLite, in-process only WAL with synchronous=FULL, 128 MB page cache, 4 GB mmap, an index on every column.

PostgreSQL has no in-process mode and SQLite has no server mode, so InventDB is measured both ways and compared with each on its own terms: in-process against SQLite, client/server against PostgreSQL. Comparing an embedded engine against a networked one and calling the difference a win is the easiest way to publish a number that means nothing.

Every releasable build

What runs, every time

The same benchmark legs, on the same 10-million-record dataset restored from a fixed snapshot, never regenerated, so the data cannot drift between releases.

The per-release benchmark matrix
Leg What it is How it is run
Full SQL battery3,551 queries across 28 categories: joins, aggregates, ordering, pagination, LIKE, nested pathssingle-threaded and four-thread, in-process and client/server
143-query shared setThe subset every engine can answer in its own dialect, for a like-for-like comparisonsingle-threaded and four-thread, in-process and client/server
TPC-CThe transaction benchmark (NewOrder, Payment, OrderStatus, Delivery, StockLevel) with exact accounting checkssequential and four-thread, in-process and client/server

Alongside the benchmarks, every releasable build runs the functional suites: smoke, regression, the QA campaign, the API harness and the engine's own test batteries. A build that is fast and wrong is not a release candidate.

Method

How the numbers are kept honest

Most of the work in a benchmark is not running it. It is making sure the thing measured is the thing you think was measured.

Rules the rig enforces
RuleWhy it exists
Row counts are cross-checked between enginesEvery query's result count is compared across all three. An engine that quietly returns fewer rows fails the leg rather than winning it.
Correctness tests check the answer rather than the row countA wrong top-100 still has 100 rows, and a wrong COUNT still returns one row. Ordered queries are checked against the true minimum and maximum, and against the number of qualifying rows beyond the last one returned.
Every engine gets the same schema workInventDB indexes every property by design, so the comparators are given an index on every column too. A primary-key-only schema would measure a different amount of write work.
Durability is matchedPostgreSQL runs synchronous_commit=on; SQLite runs WAL with synchronous=FULL. No engine may acknowledge a commit the others are still flushing.
Benchmark harnesses are matched tooThe TPC-C harnesses were single-warehouse by construction, which turns the benchmark into a single-row contention test. All three now take the same scale and thread-routing settings.
A result is not believed until it repeatsAn outlier is re-run, and a suspected regression is re-measured against a control build in the same environment before it is attributed to any change.
Reverted work is published tooThe release notes record optimisations that were measured and thrown away, two of which made a category several hundred times slower. The measurements are the useful part.

Methodology

How we ran it

The setup, in full

Two platforms are published on this page. The Linux · ARM tab is the reference: three dedicated Graviton machines, one per engine, identical spec, the same 10M-record dataset; see how we test. The Windows tab is the same suites on a single workstation with four cores. Different hardware, so the two are never mixed and never totalled together.

10M records, encryption on, and the engine in its shipping configuration: the columnar cache, the document cache and memory-mapped reads of sealed files are all on, each sized by the server from the memory the machine reports. Earlier releases were measured with those caches switched off; the two are not comparable, and only the current configuration is published here. Each suite runs twice: with a single client (one connection, queries in sequence) and with 4 parallel clients each running the whole battery against one shared database. Those labels count callers rather than internal threads. Cold is a query's first execution on an established connection; warm is a repeat. Every server is warmed before its leg. The two suites, 143 queries (18 categories) and the 3,551-query battery (28 categories), are never totalled together. PostgreSQL 18 and SQLite ran over the same data, driven the same way.

How PostgreSQL was configured. 23 indexes, covering the same columns InventDB indexes plus every join key; work_mem 256 MB, maintenance_work_mem 1 GB, and ANALYZE run on all four tables before measuring. shared_buffers was left at its default. Where PostgreSQL has the better index for a query it wins, and those categories are published as measured, Exact Match and Range among them.

The operating system favours InventDB here. These runs are on Windows, where PostgreSQL's process-per-connection model costs more than it does on Linux. The effect is largest in the 4-parallel-client leg, so treat the parallel PostgreSQL figures as a Windows result rather than a ceiling. The Linux results are measured separately and published in the Linux · ARM tab.

Common questions

How was this benchmark run?

On three dedicated ARM machines, one per engine, with encryption on and the engine in its shipping configuration, over a 10M-record dataset, in two legs: a single client and 4 parallel clients running the same battery at once against one shared database. Cold is a query's first execution on an established connection; warm is a repeat. Every server is warmed beforehand. PostgreSQL 18 and SQLite were run over the same data, driven the same way. InventDB’s figures are from v1.011, measured in November 2026. The PostgreSQL and SQLite figures are from August 2026, on machines of the same spec over the same dataset; those two engines were not measured again.

How do the InventDB and PostgreSQL numbers compare?

On the 143-query shared set, single client: InventDB client/server 19,951 ms cold / 18,484 ms warm; PostgreSQL 18 139,807 / 139,209. On the 3,551-query battery, single client: InventDB client/server 92,391 ms cold / 74,916 ms warm, and 64,855 ms warm in-process; PostgreSQL 137,534 / 136,915. InventDB has the lower total on both suites, cold and warm. PostgreSQL has the lower warm time in 13 of the 26 categories it ran in the 3,551-query battery, and a higher TPC-C throughput than InventDB client/server. All are published as measured: InventDB at v1.011 in November 2026, PostgreSQL in August 2026 on a machine of the same spec. Per-category figures are in the tables above.

How do the InventDB and SQLite numbers compare?

On the 143-query shared set, single client: InventDB in-process 60,702 ms cold / 17,398 ms warm; SQLite 358,746 / 357,636. On the 3,551-query battery: InventDB in-process 150,330 / 64,855; SQLite 237,123 / 236,986. SQLite has the lower warm time in 6 of the 18 categories of the 143-query set and in 13 of the 26 it ran in the 3,551-query battery. On TPC-C in-process, SQLite is ahead with one client (387.6 against 220.2 transactions a second) and InventDB with four threads (441.1 against 127.1). Per-category figures are in the tables above.

Do the numbers vary by category?

Yes, substantially. Category totals span several orders of magnitude across all three engines, and the ordering between them differs by category. Every category is published in the tables above, including those where InventDB records the higher number.

Which battery do these numbers come from?

Two separate suites are published: a 143-query shared set across 18 categories, and a 3,551-query full SQL battery across 28 categories. They are different suites and are never totalled together.

Can I reproduce these numbers myself?

Yes. Create your own encrypted database, load your data and run whichever queries you care about: same SQL, same engine. The capability comparison further up is a separate matter: public sources as of July 2026, describing what ships built in rather than speed.

Run your own numbers.

Create your own encrypted database, load your data and measure it yourself. The same SQL and API apply from a few thousand rows to 250 million records.

See pricing