A side quest by Helen Lee Kupp
Can AI build a database you can trust?
We are building the part of a database that answers questions about tables. Can AI help us make it fast, reliable and backed by computer-checked proofs?
People guide the work; AI helps write the code in Rust. You ask questions using SQL, a language for working with tables. The engine is an early experiment, not ready for important data.
37 recorded hours to a first working prototype.
With AI and human steering, we reached a working experimental SQL engine. The recorded build gave us something real to test and improve.
SQLLogicTest checks the answers to known SQL problems. The chart below shows six recorded correctness checkpoints, not speed measurements.
● Pilot: 35 files◆ Full test: 622 files
The full test finished at 36.44 hours. 99.929% passed (5,935,512 / 5,939,714 eligible records), with 0 observed wrong answers.
Eligible tests are the entries that apply to this engine. Unsupported questions and errors still count as failures. This is a historical prototype result, not a measurement of the published Alpha 2 package. Checkpoint evidence · Alpha 2 release provenance.
How we counted tests and time
99.93% = 5,935,512 / 5,939,714 eligible records; 79.9790% of all 7,421,339 fixed records. This prototype checkpoint is from source eeb17693, the published Alpha 2 source is 17b575b7. These are different saved code versions. The record does not show that their code and builds are equivalent, so we cannot use this result as the Alpha 2 package’s accuracy.
Pilot and full test use different collections. Axes zoom to 31–37h and 90–100%; no earlier result is inferred. The eligible count excludes only control records with no SQL to run, records after a file’s halt instruction, and records marked only for another engine. These exclusions were fixed before execution. Unsupported SQL and unexpected execution or resource errors still count as failures; the full collection retains all records.
We calculated completion times from the recorded start time and run duration. The clock starts at the first saved code version, which already contained early work. It measures elapsed time, not hours spent coding or the full project duration. Passing chosen tests is not a proof of all possible inputs.
The interactive chart could not load. The recorded points and source link are still available.
Alpha 3 journey: make 10 GB practical.
Polars is another tool for analyzing tables. Our goal is to run this 10 GB set of queries in 95% of the time Polars takes. We have not reached the Alpha 3 goal yet.
How speed changed.
The chart compares how long Assay and Polars took to run the same 22 queries on about 10 GB of data. A value of 1× means equal time; 2× means Assay took twice as long. Lower is faster. Move over a point, focus it with your keyboard, or tap it to learn what changed.
These results show our progress. We ran them at different times and sometimes on different computers, so they aren’t a direct comparison.
◆ The teal diamond was measured on an M2 Pro.● The coral circles were measured on the Development Mini.
Swipe or scroll sideways to see all seven points.
How we tested
Dates show when we recorded each result, not exactly when the test finished. The points are equally spaced in that order and share one scale. We leave them unconnected because the computers and methods differ.
The Alpha 3 goal is 0.95× Polars on two measures. Total time adds up the query times. The geometric mean combines query-by-query time ratios, giving each query equal weight. We must meet both targets.
The Development Mini points each report one round compared with older Polars timings. We have not verified that those runs used matching sampling rules, excluded practice runs, or kept all five timed repetitions. Fixing the timing code later does not settle that question. Busy-host retries were allowed and may affect the results.
The M2 Pro starting point used three rounds of the command-line engine while other activity was running. It is a different test from the historical M4 result of 4.1364×. Exact methods and limits are linked below.
Read every chart note
M2 Pro starting benchmark
October 11 · documented historical report · separate M2 Pro measurement.
Total: 4.1598× Polars. Geometric mean: 2.2670×.
This M2 Pro test used command-line code matched to Alpha 2, about 10 GB, all 22 queries and 10 workers. Each of three rounds included a practice run and five timed runs per query and engine. Timing ends when the complete answer is ready; totals add up the middle times for each query and round.
Other activity was running on the computer. This measures the command-line engine, not the Python package. The M4 result of 4.1364× is a different test. Do not treat this as a matching baseline for the Development Mini.
We reduced repeated grouping work.
· documented milestone · development diagnostic.
Total: 1.302× Polars. Geometric mean: not reported for this final run.
Giving each group a small ID meant less work for every row.
This Development Mini test used about 10 GB, all 22 queries and 10 workers. It reports one round against older Polars timings. Matching sampling methods have not been verified, so it does not measure improvement against the main version.
Counting unique values got faster.
· documented milestone · development diagnostic.
Total: 1.255× Polars. Geometric mean: 1.293×.
Sorting values together helped us avoid checking the same values repeatedly.
This Development Mini test used about 10 GB, all 22 queries and 10 workers. It reports one round against older Polars timings. Matching sampling methods have not been verified, so it does not measure improvement against the main version.
We stopped reading the same data twice.
· documented milestone · development diagnostic.
Total: 1.234× Polars. Geometric mean: 1.266×.
We kept a small filtered result so the next step could reuse it.
This Development Mini test used about 10 GB, all 22 queries and 10 workers. It reports one round against older Polars timings. Matching sampling methods have not been verified, so it does not measure improvement against the main version.
We used real row counts.
· documented milestone · development diagnostic.
Total: 1.187× Polars. Geometric mean: not reported for this final run.
Counting the rows first helped us choose a better way to run the query.
This Development Mini test used about 10 GB, all 22 queries and 10 workers. It reports one round against older Polars timings. Matching sampling methods have not been verified, so it does not measure improvement against the main version.
Workers shared the reading work.
· documented milestone · development diagnostic.
Total: 1.110× Polars. Geometric mean: 1.157×.
Workers could pick up the next available task instead of waiting for a slow worker.
This Development Mini test used about 10 GB, all 22 queries and 10 workers. It reports one round against older Polars timings. Matching sampling methods have not been verified, so it does not measure improvement against the main version.
Workers waited less.
· documented milestone · development diagnostic.
Total: 1.087× Polars. Geometric mean: 1.147×.
Workers could start their next step without waiting for the coordinator.
This Development Mini test used about 10 GB, all 22 queries and 10 workers. It reports one round against older Polars timings. Matching sampling methods have not been verified, so it does not measure improvement against the main version.
A separate provisional test on October 15
A separate M4 test reported 0.970× Polars total time and 1.046× geometric mean. This is a provisional result, not accepted performance evidence. It does not meet the 0.95× goal and is separate from the chart points and the Test Mini results.
The test used all 22 queries, 10 workers and three rounds that changed the engine order. Each round included one practice run and five timed runs per query and engine. Estimated 95% intervals were 0.967–0.973× for total time and 1.041–1.048× for the geometric mean. These estimates use three rounds; the fifteen timings are not fifteen independent tests of the computer.
The M4 had 16 GiB of memory. Assay tracked a 4 GiB budget; Polars processed data in smaller batches. Those settings are not equivalent limits on all memory used. Checks for a quiet computer covered six five-second periods, not the whole run. The linked record includes software versions and other settings.
Read the milestone data and methods. Read the reviewed PR evidence.
How fast was Alpha 2 in this run?
We compared Alpha 2 with DuckDB and Polars, two other tools for analyzing tables. Each ran the same 22 questions on smaller and larger datasets. A worker is a task that can run alongside other tasks; asking for more workers does not guarantee a faster answer.
Total time for 22 queries, averaged across three measurement rounds. Shorter bars mean less time. Both worker panels share the same zero-based scale for each dataset.
Smaller dataset (~1 GB)
| Engine | Seconds |
|---|---|
| Assay | 5.00 s |
| DuckDB | 6.66 s |
| Polars | 5.05 s |
| Engine | Seconds |
|---|---|
| Assay | 1.22 s |
| DuckDB | 1.17 s |
| Polars | 0.90 s |
Larger dataset (~10 GB)
| Engine | Seconds |
|---|---|
| Assay | 78.18 s |
| DuckDB | 69.04 s |
| Polars | 51.11 s |
| Engine | Seconds |
|---|---|
| Assay | 31.25 s |
| DuckDB | 10.33 s |
| Polars | 7.51 s |
These results came from the command-line engine on an Apple M2 Pro while other activity was running. They do not measure the Python package. On the larger dataset, Assay took longer than both comparison tools, even with more workers.
The computer and method matter. We have not repeated these Alpha 1 and Alpha 2 package comparisons on the Test Mini M4.
Performance methods, quantitative goals and earlier results
This chart measures command-line code matched to Alpha 2 at revision fb72cc0 on Apple M2 Pro, against DuckDB 1.5.6 and Polars 2.0.0. It is not installed Python-wheel or Python-API timing.
Timing starts with the SQL query and ends when the complete answer is ready in Arrow, a format for storing columns of data. For each query, we took the middle time from five measured runs after a practice run. We repeated this in three rounds, averaged those middle times, and added the query times together. This was a best-effort run with background activity, not a quiet-host baseline. These are research measurements, not audited TPC-H results.
The next goal: 0.95× or less against Polars for both total query time and geometric mean on the same roughly 10 GB, 22-query workload, with correctness checks retained and full settings and results recorded. That is a goal, not an achieved result or a promise about every query.
Earlier small-data results: an earlier engine on Apple M4 used 6.2% less total query time than Polars and 27.1% less than DuckDB at roughly 1 GB with one requested worker. That run is separate from the 37-hour correctness checkpoints and the historical alpha2/M2 Pro chart.
Historical validation · 28 October 2026
Pre-merge candidate validation.
Before PR13 merged, Test Mini validation of candidate b5b34e5 recorded 5,939,628 passes out of 5,939,714 applicable cases, with 31 unsupported cases, 55 errors and zero wrong answers.
The frozen 55,000-query differential suite recorded 54,171 direct passes, 739 documented SQLite divergences, 65 native errors and 25 oracle errors. The prescribed DuckDB cross-check classified all 739 answer differences as documented divergences, leaving zero classified wrong answers. All 65 native errors were documented expected rejections; they are kept separate from direct passes.
Retained 23 October results for this candidate include 1,169 passing Rust tests across 121 targets, including normally ignored tests, plus installed Python checks and 64 retail regression cases. These are earlier executions, rechecked for this update.
Qualification was incomplete at the time of this snapshot. This update did not publish an engine update, package or new performance result. PR13 has since merged as an engine improvement with documented gaps; see the merged contribution and its reviewed results and limits. No full SQL support or package release is claimed.
Validation status and limits (JSON) · Public source used for the comparison
Now, make 10 GB practical.
The larger dataset shows where the engine needs work. We want it to answer useful questions quickly on your own computer. We are improving speed and adding SQL features, while checking that the answers stay correct.
Here, 1 GB and 10 GB mean approximate uncompressed dataset size, not memory use. Performance and production readiness are still work in progress.
Then, verify the riskiest parts of the engine.
A proof must match the code it describes. Because the engine is still changing quickly, we are improving speed and SQL support first. Then we plan to expand computer-checked proofs for the parts most likely to cause serious mistakes.
