Deprecated
Performance · historical
Compare native engine memory and versioned timing datasets without mixing in binding costs.This page measures the native engine, with the same categories for each release. Keep two costs separate: reserved session memory and native execution time. A smaller reservation does not establish faster solving.
Python binding performance has a separate page and protocol: its conversions and interpreter costs are not native engine microbenchmarks.
For when to add one fact or an atomic batch, see Runtime EDB. The topical API references contain the calls and examples.
Reserved session memory
Creating a reference session reserves bounded working memory for later requests. This setup cost is different from the time needed to solve a request.
The release notes report the following per-session reservations on the checked 64-bit builds, when the session shares an engine-owned compiled policy:
| Release | SMALL | LARGE |
|---|---|---|
| 0.11.1 | 515,416 bytes | 935,256 bytes |
| 0.12.0 | 286,040 bytes | 476,504 bytes |
| Reduction from 0.11.1 to 0.12.0 | 229,376 bytes (224 KiB) | 458,752 bytes (448 KiB) |
The same three engine allocations reserve this session storage at creation. These figures exclude the policy itself and optional explanation/backend workspaces. Application input buffers, binding objects and output text have their own costs. This is not whole-process memory usage (RSS).
In 0.12.0, the reference engine removes unused canonical input-export storage, avoids a duplicate derived-fact array and borrows session-owned materialized inputs under the result lease. Normal dictionary resets also touch less unused capacity, but that reset change does not reduce the reservation itself.
The ownership rules do not change: one live result per session, and a prepared explanation retains its result. Clearing the application's input EDB after solve remains possible; it does not free the result's session-owned state.
Sources: 0.11.1 memory scope and 0.12.0 changes and exclusions.
Measured performance
Individual release campaign
Explore native measurements for each release: select the release, SMALL or LARGE, then the individual pass. The September 27 campaign targets all 18 published releases, from 0.1.0-alpha.3 through 0.12.0, including 0.1.0-alpha.4. The explorer only imports completed campaigns; an unfinished run is not presented as a complete dataset.
This is one common native core benchmark at -O2, rebuilt against each immutable tag with the same Clang toolchain on the local Mac. It measures interning, insertion and native solver workloads, not the opaque session API or a Python request. Every raw pass is retained. Four A/A passes establish two repeatability pairs per binary before the forward/reverse rounds; those rounds are never pooled into one percentile. Below 10 µs use the minimum, otherwise the median and p95. Priority and affinity are unchanged, and no core case is selected away.
Python release measurements have their own banc, binding identities, lifecycle and statistics. They are not points on these native curves.
The chart archive below keeps its original captures and provenance. Its missing entries mean missing data in that older archive, not missing values in a completed new release campaign.
Native measurements by release
Every row uses the same categories: native timing data, capacity profiles and measurement source. Python timings and reserved-memory figures do not fill a missing native dataset.
| Release | Native timing data in the historical chart archive | Profiles | Measurement source |
|---|---|---|---|
| 0.12.0 | Not available. | — | No native chart dataset imported for this release. |
| 0.11.1 | Not available. | — | No native chart dataset imported for this release. |
| 0.4.0 | Loading, interning and solving microbenchmarks. | SMALL / LARGE | Raw SMALL data; select 0.4.0 in Charts. |
| 0.3.1 | Loading, interning and solving microbenchmarks. | SMALL / LARGE | Raw SMALL data; select 0.3.1 in Charts. |
| 0.1.0-alpha.1 | Historical native microbenchmarks; measurement metadata records a different commit and a dirty checkout. | SMALL / LARGE | Select the alpha in Charts and read its provenance before using it as a comparison. |
“Not available” means not imported into this site's chart archive, not that no benchmark was ever run elsewhere. Release notes may contain other observations; they are not silently turned into this chart series.
For each new release dataset, keep the same native scenarios, input sizes, SMALL/LARGE profiles and statistics. Record changes to the harness or workload instead of treating similar chart titles as proof of comparability. The existing datasets retain their own historical protocol.
How to read these charts
Use the version selector first, then select SMALL or LARGE. The chart metadata names the measured commit, host and compiler. Compare the same case and input size; do not treat a jump between profiles as an engine regression.
- Loading: compare unit and batch modes at the same fact count. These modes exercise the archived implementation, not a benchmark of the current public batch API.
- Interning: compare distinct, repeated and mixed string inputs.
- Selectivity: keep the input size fixed and vary the fraction matching the
rule
allow(U) :- user(U). - EDB size: keep the matching fraction near 10% and vary the total input size.
- Repeated solve: examine repeated evaluations on the archived build; this does not establish the cost of a current prepared session.
Charts
Methodology
The archived charts display native, warm-cache/warm-pool microbenchmarks at
-O2. Their harness uses warmup and repeated samples; the charts display the
median. Raw artifacts also retain p95, minimum and maximum.
These are captured JSON datasets, not benchmarks running in your browser. They remain useful historical observations, but their medians alone do not establish a regression-free current engine or explain a latency tail.
Engine profiles
SMALL and LARGE select bounded capacities, not different Datalog semantics. Compare identical workloads within a profile when studying a release change. The familiar public capacity bounds are:
| Limit | SMALL | LARGE |
|---|---|---|
| Facts per predicate | 64 | 256 |
| Input EDB entries | 1024 | 2048 |
| Derived facts | 1024 | 2048 |
| Symbols | 512 | 512 |
| Predicates | 128 | 128 |
| Rules | 128 | 128 |
These are capacity bounds, not bytes reserved or a speed ranking. Use the C limits reference or the binding's build-limit accessor to inspect the library actually loaded by an application.
Comparing native releases
New release comparisons need a consistent measurement protocol:
- Use the same cases, fact counts and SMALL/LARGE profiles. Report whether session creation is inside or outside the timed operation.
- Identify the exact measured commit, machine, architecture, compiler and flags. A candidate observation is not automatically a timing of the final release.
- Measure the same binary against itself (A/A) to expose noise, then alternate baseline and candidate runs (A/B). An effect below its noise floor is indeterminate, not a win or proof of equality.
- Declare the statistic before interpreting the result. Preserve the historical datasets' methodology; do not retrospectively label them as following a newer protocol.
- Report the latency tail as well as typical time. p95 describes the slower end of the sample distribution, not a worst-case bound.
- Keep instrumentation and host differences visible. Matching graphs do not make absolute timings from different machines directly comparable.
- Retain earlier results and accepted uncertainties. A quieter later run does not erase an earlier observation.
A measured improvement belongs to its workload and environment. It does not by itself establish the cause or guarantee the same gain in another application.
What you have learned
Working model
Compare the same native workload- Memory and speed are separate
A smaller native session reservation does not imply a faster solve or lower whole-process memory.
- Keep a consistent native series
Use the same native scenarios and disclose profiles, input sizes, compiler, host and protocol for each release.
- Missing data stays missing
Python timings and old native curves do not become a new release’s native measurements.
- Read provenance and uncertainty
The selected release, exact measured commit, noise floor and tail matter alongside the plotted median.