Performance
FerroEHR’s performance figures come from the same instrument as its
conformance record: the perf command of
Veredictum, at the release
pinned in scripts/lib/veredictum.sh. A performance record earns no class
and enters no conformance verdict. No openEHR specification governs
performance, so the measurement method is Veredictum’s own design, described
in its book under
Measured performance.
Nothing on this page is hand-typed: every number comes from the committed
record or from charts drawn from it.
- What a run measures
- How to read the record
- The workload
- The measured posture
- The durability floor: what a single write can never beat
- Reproducing it
- Where a published figure is measured
- The storage benchmark harness
- Comparing two builds on one runner
- Schema generation
generation-1, classs - Schema generation
generation-2, classpoc - Schema generation
generation-2, classs - Schema generation
generation-3, classpoc - Schema generation
generation-3, classs - Schema generation
generation-4, classpoc - Schema generation
generation-4, classs - Schema generation
generation-5, classpoc - Schema generation
generation-5, classs - Schema generation
generation-6, classpoc - Schema generation
generation-6, classs
- The published figures
What a run measures
veredictum perf offers one pinned workload to a running FerroEHR as an
open-loop schedule of Poisson arrivals. Each request’s latency counts from the
instant it was due, not from when it was sent, so a server that stalls cannot
hide the queue it builds behind a few fast replies. A run has these phases:
- Seeding, before the clock: the workload’s corpus is committed through the public write path, closed-loop, and reported apart.
- Posture canaries: a first bracket of probes checks that the deployment runs the posture the run declares (below).
- Settle:
vacuumdb --all --analyzeruns in the database container, so no plateau pays the seed’s maintenance debt. - Warm-up, discarded.
- Scout: an exponential ramp, judged in short windows, whose first breach gives an estimate of the knee.
- Ladder: plateaus at fixed fractions of that estimate, each held long enough to judge its tail.
- Closing: the second bracket of posture canaries.
The whole run after seeding takes at most ten minutes. A plateau qualifies
when every operation keeps its judged percentile inside its latency budget,
the errors stay inside the error budget, the achieved rate keeps up with the
offered rate, and the load generator kept up. One 429 voids the record.
How to read the record
The record is a perf-result document,
docs/conformance/ferroehr/perf-result.json:
- The knee is the highest offered rate whose plateau qualifies with every plateau below it. It is a bracket between that plateau and the first one that fails, a lower bound when every plateau qualifies, or below the ladder.
- The peak is the highest achieved throughput, whatever its latency.
- Percentiles p50 to p99.9 per operation come from the recorded
histograms with their confidence intervals. A percentile with too few
samples above it reads
n/r, not resolvable, and each operation is judged at the highest percentile that resolves. - Population turns the knee into the range of people a deployment of that capacity serves at its peak, beside the corpus scale it was measured at.
- Server-side readings (CPU, memory and I/O per container, database sizes,
the top
pg_stat_statementsentries, the PostgreSQL settings) are context for capacity planning and never enter a judgement. - Between-run noise reads
unmeasuredunless an A/A floor is attached (below).
veredictum perf-judge re-derives every derived number from the recorded
histograms and fails when one byte differs, so the record can be checked by
anyone who has it.
The workload
The published record offers clinical-mix, Veredictum’s reference workload:
what a clinical front end sends, with chart review as short sessions on one
EHR, ward boards, problem lists, cohort counts, AQL over ad-hoc and stored
queries, and the order, result, correction, folder, tag, definition,
demographic and bootstrap traffic around them. Every share in the mix names
its derivation, and the payloads are published openEHR CKM templates. The
pinned workloads, their expanded per-operation mix and their digests are
listed on Veredictum’s
Performance workloads page.
The measured posture
A latency figure is a claim about a configuration, so the run declares one
and its canaries check it before and after the measured window. FerroEHR is
measured as minimal-signed-digest: commits validated against the
operational template and every version digest-signed, which is how FerroEHR
ships. The measurement overlay docker/sut-measurement.yml changes two
things against the conformance deployment, both visible in the file: it
switches per-caller rate limiting off, because the scout ramp offers load past
the knee from one caller on purpose, and it switches response compression
off, because every posture profile declares it off and a compressed answer
would refuse the run.
The durability floor: what a single write can never beat
Every committed version is durable: the transaction’s WAL records are flushed
to disk before the server answers, so an acknowledged commit survives a crash.
That flush (one fsync on the WAL device per commit) is a physical lower
bound on single-client write latency, and no storage design takes a lone
sequential client below it. On a laptop-class Docker setup the flush alone
dominates a single write’s budget; on server NVMe it is typically an order of
magnitude smaller. FerroEHR’s optimization target is therefore everything around the
flush: the database’s own per-commit work (one folded commit statement, one
merged placement read) stays far below the flush itself. That is also what
makes concurrent throughput scale: PostgreSQL group-commits, amortizing one
flush across every transaction that reaches it in the same window.
The knob behind this boundary is PostgreSQL’s
synchronous_commit.
Setting it off makes commits return before the WAL flush: single-client
write latency drops to the statement work alone, and a server crash can lose
the most recent acknowledged commits (up to three times wal_writer_delay,
per the PostgreSQL documentation). The database stays consistent; the tail of
acknowledged writes is what is at risk. FerroEHR never defaults this off
and does not recommend it for clinical data. It is an operator decision,
made per deployment on the database side, defensible only where the record of
loss is acceptable (a load-test rig, a reseedable sandbox, an analytics
replica). All published FerroEHR numbers are measured with full durability
on.
Reproducing it
The measured lane is a stage of the conformance pipeline. It composes the
conformance deployment with the measurement overlay on fresh volumes, runs
veredictum perf, re-derives the record with perf-judge, and redraws the
charts on this page:
bash scripts/conformance.sh perf
# the same deployment measured against itself, interleaved, so the record
# carries its between-run noise floor
bash scripts/conformance.sh perf-aa
CONF_PERF_WORKLOAD picks another pinned workload (aql-mix offers the six
AQL classes alone), CONF_PERF_POSTURE another posture profile, and
CONF_PERF_OUT another record path. The stage runs the pinned binary on the
host, because the settle phase reaches the database container with
docker exec; the IXIT’s containers block names the containers. To measure
a deployment the pipeline does not compose, drive the instrument directly:
source scripts/lib/veredictum.sh
"$(veredictum_bin)" perf --root "$(veredictum_perf)" \
--catalogue "$(veredictum_catalogue)" \
--ixit docs/conformance/party/ferroehr/ixit.json \
--statement docs/conformance/party/ferroehr/statement.json \
--workload "$(veredictum_workload clinical-mix)" \
--posture minimal-signed-digest \
--host-prescription reference-8cpu-8gb \
--out perf-result.json
"$(veredictum_bin)" perf-judge --result perf-result.json
scripts/render/perf-assets.sh draws the charts and the summary from the
committed record with veredictum perf-assets, and the docs CI job re-renders
and diffs them, so a hand-edited or stale chart fails the build.
Where a published figure is measured
Two hosted runs of the same code can read far apart, so an absolute figure
from a shared CI runner says little. A published record is measured on the
idle reference host and names it with a host prescription
(reference-8cpu-8gb, under perf/ in Veredictum); the record reads the
prescription against the fingerprint the load generator measured, and a host
that does not match reads unmatched with every difference. On any other
machine, compare two builds instead: veredictum perf-compare --ab runs both
sides interleaved on one host from one seed, and a difference counts only
when it clears the tolerance and the A/A floor.
The storage benchmark harness
A second instrument measures the storage layer directly, below the wire:
STORAGE_BENCH_CLASS=poc cargo bench -p ferroehr --bench storage
It seeds a corpus through the ordinary write path, then times the storage layer’s hot paths one at a time: a composition commit, a supersession, the supersession that states the version it replaces, a point read by version uid and one by versioned-object uid, the version at an instant, the revision history, an AQL CONTAINS chain over one EHR and over the whole population, archive and restore of an EHR, and one retention prune.
Beside each operation’s wall-clock it records what the database did for it. The
per-relation tuple counters (inserted, updated, updated in place, dead, live)
and the relation sizes come from pg_stat_user_tables, the buffer hits and
misses from pg_stat_database, and the write-ahead-log bytes from the WAL
position either side of the measurement. One representative commit is probed on
its own, and the population query is explained with
EXPLAIN (ANALYZE, BUFFERS, WAL) inside a transaction that is rolled back, so
the plan shape and its index choices land in the record too.
Everything runs through the service and the public storage API, and the
relations are discovered from the catalogue, so no table name appears anywhere
in the harness and the same file measures a rewritten schema. That is the
point: a storage change is argued from a before-and-after pair taken with one
instrument. It earns no class and touches no conformance artifact; the record’s
shape is documented in docs/benchmarks/storage/README.md. Records are local by
default, and the committed baseline is what this page renders.
Comparing two builds on one runner
A dispatch-only workflow (.github/workflows/storage-bench.yml) runs the same
benchmark on one GitHub-hosted runner, against a PostgreSQL 18 service with its
durability left on, for two builds: a baseline and a candidate. The candidate
is the dispatched ref, and the baseline is its merge base with main unless
the dispatch names another revision, so a dispatch on main measures the same
code twice and shows the lane’s own noise. The two builds run in turn, several
rounds each (eight by default), in alternating order, and each round seeds a
fresh database and runs ANALYZE before it measures anything. A runner that
slows down part way through then slows both builds alike.
Both builds are measured on the same machine because a latency compared with a record from another runner says little: two hosted runs of the same bench code read 20 of 27 operations 40 to 156 % apart. Two verdicts come out of the rounds, and either one fails the run:
- The plan verdict reads pages per call, the buffer hits and reads per call, which do not depend on the speed of the machine. An operation fails when the candidate’s median rose more than the page tolerance (10 % by default), and by at least one page, above the highest baseline round.
- The time verdict first divides each round by its machine factor, so a round where the whole runner ran slow does not read as the code. An operation regresses only when its median p50 or p99 rose more than the tolerance (15 % by default) and every candidate round is slower than every baseline round at that percentile. A rise whose rounds overlap the baseline’s is reported as within the noise of the rounds.
The candidate’s storage sizes do not depend on the machine, so they are judged against the record committed for its schema generation and class: bytes per composition version or per node row that grew more than the size budget (5 % by default) fail the run. A generation and class with no committed record fails the run, with the error in the job summary, so the change that moves the schema generation commits the new generation’s records with it (#4291). The run summary lists every round with its machine factor, and each operation with its pages per call and its raw and adjusted change.
That lane is exploration, never a conformance record. It earns no performance
class, publishes no number, and writes nothing back to the repository: the
round records leave as a run artifact, and the committed baseline under
docs/benchmarks/storage/<generation>/ moves only in a pull request that says
which run measured it. docs/benchmarks/storage/README.md records the numbers
behind each bound (#4318).
Schema generation generation-1, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 200 | 3.6 ms | 5.3 ms | 5.3 ms | 47 MiB | 1 008 028 |
supersede | 870 | 11.2 ms | 14.4 ms | 14.4 ms | 37.5 MiB | 30 795 283 |
supersede_if_match | 850 | 11.4 ms | 14.5 ms | 14.5 ms | 36.5 MiB | 29 699 039 |
by_version_uid | 13 640 | 298.6 µs | 374.6 µs | 374.6 µs | 77.3 KiB | 250 604 |
latest_by_versioned_object_uid | 8 550 | 479.9 µs | 1 ms | 1 ms | 456 B | 121 845 |
version_at_time | 7 260 | 597.3 µs | 640 µs | 640 µs | 136 B | 122 318 |
revision_history | 25 230 | 193.9 µs | 216.6 µs | 216.6 µs | 88 B | 671 513 |
contains_one_ehr | 2 850 | 1.7 ms | 1.8 ms | 1.8 ms | 368 B | 766 648 |
contains_population | 3 440 | 1.1 ms | 1.1 ms | 1.1 ms | 0 B | 1 294 649 |
archive_ehr | 90 | 23.3 ms | 30.3 ms | 30.3 ms | 252.7 MiB | 6 969 118 |
restore_ehr | 160 | 24.9 ms | 69.1 ms | 69.1 ms | 400.5 MiB | 9 276 746 |
retention_prune | 25 650 | 166.7 µs | 185.7 µs | 185.7 µs | 104 B | 35 104 |
One representative commit wrote 2.6 MiB of WAL and touched 88 172 buffers. The population CONTAINS statement plans as Gather and reads 55 817 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
ehr.audit | 7 188 | 0 | 0 | 0 | 1.9 MiB |
ehr.contribution | 6 988 | 0 | 0 | 0 | 1.3 MiB |
ehr.ehr | 100 | 0 | 0 | 0 | 112 KiB |
ehr.event_outbox | 6 988 | 0 | 0 | 0 | 3.9 MiB |
ehr.node | 296 059 | 0 | 0 | 0 | 271.8 MiB |
ehr.template_ref | 1 | 0 | 0 | 0 | 32 KiB |
ehr.template_store | 1 | 0 | 0 | 0 | 136 KiB |
ehr.vo_archive | 0 | 0 | 0 | 0 | 40 KiB |
ehr.vo_version | 7 088 | 0 | 2 330 | 0 | 30.1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 6ebfdb32b304 on 8 cores against PostgreSQL 18.6.
Schema generation generation-2, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 530 | 8.5 ms | 9.1 ms | 9.1 ms | 24.2 MiB | 395 240 |
supersede | 470 | 10.3 ms | 11.1 ms | 11.1 ms | 21.6 MiB | 905 767 |
supersede_if_match | 540 | 10 ms | 11.2 ms | 11.2 ms | 24.1 MiB | 1 070 922 |
by_version_uid | 8 290 | 519.5 µs | 538.3 µs | 538.3 µs | 168 B | 213 581 |
latest_by_versioned_object_uid | 8 630 | 534.3 µs | 553.9 µs | 553.9 µs | 120 B | 204 101 |
version_at_time | 4 290 | 990.6 µs | 996 µs | 996 µs | 0 B | 135 299 |
revision_history | 15 730 | 300.1 µs | 312.9 µs | 312.9 µs | 0 B | 437 101 |
contains_one_ehr | 1 140 | 4 ms | 4.2 ms | 4.2 ms | 128 B | 605 955 |
contains_population | 2 270 | 2.1 ms | 2.2 ms | 2.2 ms | 0 B | 620 677 |
flat_2_sibling_leaves | 210 | 21.9 ms | 22.7 ms | 22.7 ms | 112 B | 3 639 915 |
flat_3_sibling_leaves | 190 | 25.5 ms | 26.7 ms | 26.7 ms | 88 B | 3 422 117 |
streaming_2_sibling_leaves | 870 | 5.9 ms | 6.2 ms | 6.2 ms | 0 B | 2 524 699 |
streaming_3_sibling_leaves | 800 | 6.2 ms | 6.3 ms | 6.3 ms | 0 B | 2 580 569 |
contains_exists | 580 | 8.4 ms | 8.5 ms | 8.5 ms | 0 B | 6 860 724 |
node_predicate | 1 240 | 4 ms | 4.2 ms | 4.2 ms | 0 B | 2 130 540 |
where_magnitude | 110 | 46.4 ms | 47.3 ms | 47.3 ms | 0 B | 3 399 817 |
where_coded | 200 | 23.4 ms | 25.8 ms | 25.8 ms | 0 B | 3 495 572 |
where_date_time | 1 070 | 4.5 ms | 4.6 ms | 4.6 ms | 0 B | 1 884 349 |
where_text | 210 | 23.2 ms | 24.4 ms | 24.4 ms | 0 B | 3 628 755 |
wide_projection_one_ehr | 100 | 53.2 ms | 55.3 ms | 55.3 ms | 56 B | 464 725 |
wide_projection_population | 180 | 29.2 ms | 32.9 ms | 32.9 ms | 0 B | 3 761 922 |
select_observation | 760 | 6.5 ms | 6.8 ms | 6.8 ms | 0 B | 1 804 991 |
select_composition_one_ehr | 860 | 5.5 ms | 6.7 ms | 6.7 ms | 0 B | 474 289 |
aql_version_at_time | 1 220 | 4 ms | 4.2 ms | 4.2 ms | 0 B | 1 827 733 |
archive_ehr | 30 | 91.4 ms | 101.2 ms | 101.2 ms | 52.9 MiB | 1 038 199 |
restore_ehr | 30 | 106.1 ms | 108.4 ms | 108.4 ms | 52.7 MiB | 1 121 364 |
retention_prune | 23 420 | 211.1 µs | 236.3 µs | 236.3 µs | 8.3 KiB | 33 082 |
One representative commit wrote 305 KiB of WAL and touched 3 903 buffers. The population CONTAINS statement plans as Nested Loop and reads 43 224 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 2 324 | 0 | 0 | 0 | 632 KiB |
clinical.contribution | 2 284 | 0 | 0 | 0 | 584 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 56 KiB |
clinical.event_outbox | 2 284 | 0 | 0 | 0 | 1.4 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 88 KiB |
clinical.node_hot | 100 332 | 0 | 0 | 0 | 81.4 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 120 KiB |
clinical.version_hot | 2 304 | 0 | 0 | 0 | 8.8 MiB |
clinical.vo_head | 1 020 | 60 | 3 948 | 3 948 | 312 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit c82f0992d308 on 4 cores against PostgreSQL 18.6.
Schema generation generation-2, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 510 | 9.7 ms | 9.9 ms | 9.9 ms | 110.9 MiB | 470 378 |
supersede | 500 | 9.9 ms | 10.4 ms | 10.4 ms | 22.8 MiB | 1 034 920 |
supersede_if_match | 540 | 10 ms | 10.4 ms | 10.4 ms | 24.4 MiB | 1 151 542 |
by_version_uid | 8 700 | 488.6 µs | 493.7 µs | 493.7 µs | 2.8 KiB | 222 174 |
latest_by_versioned_object_uid | 9 360 | 489.2 µs | 512.2 µs | 512.2 µs | 128 B | 218 149 |
version_at_time | 4 490 | 946.8 µs | 992.3 µs | 992.3 µs | 56 B | 146 116 |
revision_history | 16 450 | 287.8 µs | 300.8 µs | 300.8 µs | 0 B | 453 104 |
contains_one_ehr | 1 240 | 3.6 ms | 3.7 ms | 3.7 ms | 136 B | 658 178 |
contains_population | 1 740 | 3 ms | 3 ms | 3 ms | 0 B | 1 020 037 |
flat_2_sibling_leaves | 60 | 92.3 ms | 95.9 ms | 95.9 ms | 16.4 KiB | 33 018 094 |
flat_3_sibling_leaves | 60 | 95.9 ms | 97.8 ms | 97.8 ms | 0 B | 33 030 979 |
streaming_2_sibling_leaves | 660 | 7.6 ms | 7.9 ms | 7.9 ms | 0 B | 2 398 276 |
streaming_3_sibling_leaves | 630 | 8 ms | 8.1 ms | 8.1 ms | 0 B | 2 137 922 |
contains_exists | 170 | 30.2 ms | 34.2 ms | 34.2 ms | 0 B | 11 007 303 |
node_predicate | 930 | 5.4 ms | 5.5 ms | 5.5 ms | 0 B | 2 127 292 |
where_magnitude | 50 | 120.1 ms | 121.4 ms | 121.4 ms | 0 B | 5 504 663 |
where_coded | 720 | 6.9 ms | 7.2 ms | 7.2 ms | 0 B | 2 269 954 |
where_date_time | 820 | 6.1 ms | 6.2 ms | 6.2 ms | 0 B | 1 917 884 |
where_text | 730 | 6.9 ms | 7 ms | 7 ms | 0 B | 2 293 234 |
wide_projection_one_ehr | 50 | 114.2 ms | 115.6 ms | 115.6 ms | 0 B | 1 977 924 |
wide_projection_population | 380 | 13.3 ms | 13.7 ms | 13.7 ms | 88 B | 2 326 270 |
select_observation | 620 | 7.9 ms | 8 ms | 8 ms | 0 B | 1 607 057 |
select_composition_one_ehr | 600 | 8.2 ms | 8.5 ms | 8.5 ms | 0 B | 683 661 |
aql_version_at_time | 800 | 6.2 ms | 6.3 ms | 6.3 ms | 0 B | 6 498 839 |
archive_ehr | 20 | 173 ms | 181.1 ms | 181.1 ms | 68 MiB | 1 320 254 |
restore_ehr | 20 | 204.5 ms | 207.9 ms | 207.9 ms | 60.6 MiB | 1 298 376 |
retention_prune | 23 980 | 207.7 µs | 209 µs | 209 µs | 2.1 MiB | 73 258 |
One representative commit wrote 297.2 KiB of WAL and touched 960 buffers. The population CONTAINS statement plans as Nested Loop and reads 42 257 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 5 486 | 0 | 0 | 0 | 1.5 MiB |
clinical.contribution | 5 286 | 0 | 0 | 0 | 960 KiB |
clinical.ehr | 100 | 0 | 0 | 0 | 152 KiB |
clinical.event_outbox | 5 286 | 0 | 0 | 0 | 2.9 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 232 KiB |
clinical.node_hot | 252 462 | 0 | 0 | 0 | 167.6 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 144 KiB |
clinical.version_hot | 5 334 | 782 | 0 | 0 | 16.3 MiB |
clinical.vo_head | 3 940 | 13 | 4 430 | 4 430 | 936 KiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit c82f0992d308 on 4 cores against PostgreSQL 18.6.
Schema generation generation-3, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 840 | 5.8 ms | 14.6 ms | 14.6 ms | 34.8 MiB | 648 612 |
supersede | 610 | 11.4 ms | 18.9 ms | 18.9 ms | 23 MiB | 13 048 343 |
supersede_if_match | 640 | 12.3 ms | 21.6 ms | 21.6 ms | 28 MiB | 19 143 656 |
by_version_uid | 9 920 | 418.8 µs | 439.7 µs | 439.7 µs | 472 B | 245 293 |
latest_by_versioned_object_uid | 11 710 | 404.2 µs | 428.5 µs | 428.5 µs | 0 B | 301 532 |
version_at_time | 4 940 | 874.4 µs | 886.1 µs | 886.1 µs | 0 B | 151 435 |
revision_history | 18 710 | 206.6 µs | 248.5 µs | 248.5 µs | 0 B | 502 662 |
contains_one_ehr | 1 410 | 3.5 ms | 3.6 ms | 3.6 ms | 7 KiB | 859 578 |
contains_population | 2 690 | 1.8 ms | 1.9 ms | 1.9 ms | 8.1 KiB | 824 801 |
flat_2_sibling_leaves | 230 | 19.4 ms | 20 ms | 20 ms | 42.4 KiB | 5 239 470 |
flat_3_sibling_leaves | 210 | 23.4 ms | 23.8 ms | 23.8 ms | 0 B | 4 934 788 |
streaming_2_sibling_leaves | 980 | 5.1 ms | 5.3 ms | 5.3 ms | 3.6 KiB | 2 960 620 |
streaming_3_sibling_leaves | 900 | 5.5 ms | 5.7 ms | 5.7 ms | 0 B | 3 007 660 |
contains_exists | 470 | 10.5 ms | 11.1 ms | 11.1 ms | 0 B | 8 638 704 |
node_predicate | 1 380 | 3.6 ms | 3.7 ms | 3.7 ms | 0 B | 2 969 000 |
where_magnitude | 110 | 47.7 ms | 48.7 ms | 48.7 ms | 0 B | 5 012 010 |
where_coded | 230 | 22.1 ms | 23.1 ms | 23.1 ms | 0 B | 5 209 927 |
where_date_time | 1 210 | 4.1 ms | 4.2 ms | 4.2 ms | 0 B | 2 292 883 |
where_text | 230 | 22.4 ms | 23.3 ms | 23.3 ms | 0 B | 5 210 914 |
wide_projection_one_ehr | 120 | 42.1 ms | 42.9 ms | 42.9 ms | 0 B | 526 091 |
wide_projection_population | 190 | 27.3 ms | 28.6 ms | 28.6 ms | 0 B | 5 064 088 |
select_observation | 850 | 5.7 ms | 5.8 ms | 5.8 ms | 0 B | 2 121 054 |
select_composition_one_ehr | 990 | 4.8 ms | 5 ms | 5 ms | 0 B | 551 999 |
aql_version_at_time | 1 450 | 3.4 ms | 3.6 ms | 3.6 ms | 0 B | 2 565 200 |
archive_ehr | 50 | 51.3 ms | 54.2 ms | 54.2 ms | 87.7 MiB | 1 896 225 |
restore_ehr | 50 | 64.2 ms | 65.2 ms | 65.2 ms | 77.1 MiB | 1 945 710 |
retention_prune | 40 630 | 118.4 µs | 121.5 µs | 121.5 µs | 120 B | 50 499 |
One representative commit wrote 532.7 KiB of WAL and touched 1 322 buffers. The population CONTAINS statement plans as Nested Loop and reads 17 067 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 3 130 | 0 | 0 | 0 | 872 KiB |
clinical.contribution | 3 090 | 0 | 0 | 0 | 640 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 3 090 | 0 | 0 | 0 | 1.8 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 88 KiB |
clinical.node_hot | 134 990 | 0 | 0 | 0 | 89.3 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 136 KiB |
clinical.version_hot | 3 110 | 0 | 0 | 0 | 12.7 MiB |
clinical.vo_head | 1 458 | 48 | 6 332 | 6 332 | 504 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 59b91af928a4 on 4 cores against PostgreSQL 18.6.
Schema generation generation-3, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 560 | 7.6 ms | 8.6 ms | 8.6 ms | 21.6 MiB | 475 947 |
supersede | 520 | 12.9 ms | 16.4 ms | 16.4 ms | 21.6 MiB | 10 171 802 |
supersede_if_match | 520 | 13 ms | 16.7 ms | 16.7 ms | 20.1 MiB | 9 750 360 |
by_version_uid | 9 210 | 480 µs | 495 µs | 495 µs | 2.2 KiB | 226 321 |
latest_by_versioned_object_uid | 9 340 | 477.9 µs | 486.9 µs | 486.9 µs | 464 B | 224 344 |
version_at_time | 4 510 | 943.2 µs | 1 ms | 1 ms | 0 B | 140 807 |
revision_history | 17 290 | 268.1 µs | 271.6 µs | 271.6 µs | 0 B | 471 470 |
contains_one_ehr | 1 250 | 3.6 ms | 3.9 ms | 3.9 ms | 0 B | 695 743 |
contains_population | 1 680 | 3 ms | 3.1 ms | 3.1 ms | 15.8 KiB | 1 115 539 |
flat_2_sibling_leaves | 140 | 33.9 ms | 38.2 ms | 38.2 ms | 16.2 KiB | 4 120 479 |
flat_3_sibling_leaves | 140 | 37.9 ms | 39 ms | 39 ms | 232 B | 4 152 775 |
streaming_2_sibling_leaves | 580 | 8.5 ms | 9.3 ms | 9.3 ms | 0 B | 2 007 543 |
streaming_3_sibling_leaves | 580 | 8.7 ms | 8.8 ms | 8.8 ms | 0 B | 2 152 855 |
contains_exists | 200 | 25.6 ms | 26.5 ms | 26.5 ms | 0 B | 9 295 830 |
node_predicate | 830 | 6 ms | 6.1 ms | 6.1 ms | 0 B | 2 174 425 |
where_magnitude | 50 | 105.2 ms | 106 ms | 106 ms | 0 B | 4 729 616 |
where_coded | 780 | 6.2 ms | 6.6 ms | 6.6 ms | 0 B | 1 888 942 |
where_date_time | 750 | 6.8 ms | 7.1 ms | 7.1 ms | 0 B | 2 001 044 |
where_text | 810 | 6.2 ms | 6.3 ms | 6.3 ms | 0 B | 1 943 864 |
wide_projection_one_ehr | 50 | 110 ms | 111.3 ms | 111.3 ms | 0 B | 1 950 208 |
wide_projection_population | 410 | 12.4 ms | 12.5 ms | 12.5 ms | 0 B | 2 101 466 |
select_observation | 560 | 8.7 ms | 9 ms | 9 ms | 0 B | 1 619 828 |
select_composition_one_ehr | 600 | 8.4 ms | 8.7 ms | 8.7 ms | 0 B | 685 119 |
aql_version_at_time | 710 | 6.4 ms | 7.2 ms | 7.2 ms | 0 B | 5 900 107 |
archive_ehr | 20 | 138.1 ms | 141 ms | 141 ms | 65.3 MiB | 1 558 971 |
restore_ehr | 20 | 170.1 ms | 173.7 ms | 173.7 ms | 59.2 MiB | 1 516 172 |
retention_prune | 27 760 | 177.4 µs | 180.1 µs | 180.1 µs | 1.2 MiB | 71 274 |
One representative commit wrote 107.4 KiB of WAL and touched 3 784 buffers. The population CONTAINS statement plans as Nested Loop and reads 49 471 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 5 484 | 0 | 0 | 0 | 1.5 MiB |
clinical.contribution | 5 284 | 0 | 0 | 0 | 1.1 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 96 KiB |
clinical.event_outbox | 5 284 | 0 | 0 | 0 | 3 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 232 KiB |
clinical.node_hot | 254 612 | 0 | 0 | 0 | 114.1 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 160 KiB |
clinical.version_hot | 5 384 | 0 | 0 | 0 | 18.1 MiB |
clinical.vo_head | 3 990 | 104 | 4 958 | 4 958 | 968 KiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 59b91af928a4 on 4 cores against PostgreSQL 18.6.
Schema generation generation-4, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 080 | 4.4 ms | 4.5 ms | 4.5 ms | 38.6 MiB | 839 369 |
supersede | 830 | 6.4 ms | 6.8 ms | 6.8 ms | 30.3 MiB | 1 881 701 |
supersede_if_match | 910 | 6.4 ms | 11.6 ms | 11.6 ms | 33 MiB | 2 185 823 |
by_version_uid | 8 220 | 536.8 µs | 572.1 µs | 572.1 µs | 760 B | 152 667 |
latest_by_versioned_object_uid | 8 640 | 531.8 µs | 556.7 µs | 556.7 µs | 128 B | 151 163 |
version_at_time | 4 270 | 1 ms | 1.2 ms | 1.2 ms | 0 B | 92 326 |
revision_history | 18 100 | 257.8 µs | 268.3 µs | 268.3 µs | 0 B | 289 666 |
contains_one_ehr | 710 | 6.8 ms | 7 ms | 7 ms | 0 B | 2 827 280 |
contains_population | 2 150 | 2.3 ms | 2.3 ms | 2.3 ms | 144 B | 555 234 |
flat_2_sibling_leaves | 270 | 17.6 ms | 19.5 ms | 19.5 ms | 0 B | 988 291 |
flat_3_sibling_leaves | 220 | 22.9 ms | 23 ms | 23 ms | 88 B | 895 288 |
streaming_2_sibling_leaves | 680 | 7.4 ms | 7.5 ms | 7.5 ms | 0 B | 2 359 238 |
streaming_3_sibling_leaves | 630 | 7.9 ms | 8 ms | 8 ms | 0 B | 2 416 209 |
contains_exists | 360 | 13.3 ms | 13.9 ms | 13.9 ms | 0 B | 6 013 262 |
node_predicate | 990 | 5.1 ms | 5.2 ms | 5.2 ms | 0 B | 2 103 028 |
where_magnitude | 70 | 74.6 ms | 75.8 ms | 75.8 ms | 0 B | 3 771 071 |
where_coded | 840 | 5.9 ms | 6 ms | 6 ms | 0 B | 1 896 739 |
where_date_time | 860 | 5.8 ms | 6 ms | 6 ms | 0 B | 1 871 050 |
where_text | 820 | 6.1 ms | 6.3 ms | 6.3 ms | 0 B | 1 965 435 |
wide_projection_one_ehr | 120 | 41.7 ms | 43 ms | 43 ms | 0 B | 130 689 |
wide_projection_population | 400 | 12.4 ms | 12.8 ms | 12.8 ms | 0 B | 2 007 008 |
select_observation | 680 | 7.4 ms | 7.6 ms | 7.6 ms | 0 B | 1 857 760 |
select_composition_one_ehr | 870 | 5.7 ms | 6.1 ms | 6.1 ms | 0 B | 705 797 |
person_identifier_lookup | 880 | 5.5 ms | 5.7 ms | 5.7 ms | 0 B | 84 973 |
ehr_by_subject | 11 030 | 443.9 µs | 466.6 µs | 466.6 µs | 0 B | 15 268 |
aql_version_at_time | 1 240 | 4 ms | 4.1 ms | 4.1 ms | 0 B | 1 710 369 |
archive_ehr | 40 | 58.2 ms | 68.1 ms | 68.1 ms | 52.2 MiB | 1 624 838 |
restore_ehr | 40 | 82.9 ms | 89.1 ms | 89.1 ms | 47.2 MiB | 1 378 980 |
retention_prune | 33 890 | 141.1 µs | 142.2 µs | 142.2 µs | 4.2 KiB | 43 579 |
One representative commit wrote 304.6 KiB of WAL and touched 1 047 buffers. The population CONTAINS statement plans as Hash Join and reads 14 350 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 4 018 | 0 | 0 | 0 | 1.1 MiB |
clinical.contribution | 3 978 | 0 | 0 | 0 | 832 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 3 978 | 0 | 0 | 0 | 2.2 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 152 KiB |
clinical.node_hot | 171 884 | 0 | 0 | 0 | 61.2 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 160 KiB |
clinical.version_hot | 3 968 | 0 | 0 | 0 | 12.5 MiB |
clinical.vo_head | 1 698 | 243 | 5 654 | 5 654 | 680 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 40bb79e3a10f on 4 cores against PostgreSQL 18.6.
Schema generation generation-4, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 090 | 4.3 ms | 4.5 ms | 4.5 ms | 38.1 MiB | 944 061 |
supersede | 880 | 5.9 ms | 6.7 ms | 6.7 ms | 31.7 MiB | 2 069 808 |
supersede_if_match | 900 | 6 ms | 6.7 ms | 6.7 ms | 32.4 MiB | 2 146 906 |
by_version_uid | 9 080 | 464.6 µs | 472.7 µs | 472.7 µs | 416 B | 166 080 |
latest_by_versioned_object_uid | 9 050 | 464.5 µs | 477.4 µs | 477.4 µs | 0 B | 156 894 |
version_at_time | 4 370 | 962.6 µs | 977.3 µs | 977.3 µs | 0 B | 94 361 |
revision_history | 18 030 | 240.8 µs | 283.7 µs | 283.7 µs | 0 B | 288 746 |
contains_one_ehr | 1 190 | 3.8 ms | 4 ms | 4 ms | 0 B | 389 580 |
contains_population | 1 840 | 2.7 ms | 2.9 ms | 2.9 ms | 0 B | 1 258 017 |
flat_2_sibling_leaves | 200 | 24.9 ms | 27.7 ms | 27.7 ms | 31 KiB | 1 551 924 |
flat_3_sibling_leaves | 160 | 31.7 ms | 32.7 ms | 32.7 ms | 0 B | 1 381 601 |
streaming_2_sibling_leaves | 650 | 7.6 ms | 8.2 ms | 8.2 ms | 0 B | 2 562 363 |
streaming_3_sibling_leaves | 620 | 8.1 ms | 8.4 ms | 8.4 ms | 0 B | 2 265 330 |
contains_exists | 210 | 24 ms | 24.6 ms | 24.6 ms | 0 B | 10 171 573 |
node_predicate | 920 | 5.5 ms | 5.5 ms | 5.5 ms | 0 B | 2 380 645 |
where_magnitude | 50 | 106.4 ms | 107.3 ms | 107.3 ms | 0 B | 5 916 560 |
where_coded | 930 | 5.4 ms | 5.5 ms | 5.5 ms | 0 B | 2 027 603 |
where_date_time | 830 | 6 ms | 6.2 ms | 6.2 ms | 0 B | 2 199 493 |
where_text | 620 | 8.1 ms | 8.3 ms | 8.3 ms | 56 B | 3 252 641 |
wide_projection_one_ehr | 130 | 40.8 ms | 41.4 ms | 41.4 ms | 0 B | 225 187 |
wide_projection_population | 420 | 11.8 ms | 11.9 ms | 11.9 ms | 0 B | 2 096 692 |
select_observation | 630 | 7.6 ms | 7.9 ms | 7.9 ms | 0 B | 1 764 369 |
select_composition_one_ehr | 560 | 9 ms | 9.1 ms | 9.1 ms | 0 B | 611 639 |
person_identifier_lookup | 880 | 5.4 ms | 5.6 ms | 5.6 ms | 0 B | 89 721 |
ehr_by_subject | 11 440 | 436.2 µs | 451 µs | 451 µs | 0 B | 31 225 |
aql_version_at_time | 1 200 | 4.2 ms | 4.4 ms | 4.4 ms | 0 B | 1 686 531 |
archive_ehr | 20 | 126.8 ms | 131.6 ms | 131.6 ms | 59.9 MiB | 1 526 852 |
restore_ehr | 20 | 156.7 ms | 158.5 ms | 158.5 ms | 55.3 MiB | 1 560 724 |
retention_prune | 35 910 | 129.6 µs | 139.6 µs | 139.6 µs | 13.8 KiB | 45 727 |
One representative commit wrote 505.9 KiB of WAL and touched 1 274 buffers. The population CONTAINS statement plans as Hash Join and reads 14 258 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 7 138 | 0 | 0 | 0 | 1.9 MiB |
clinical.contribution | 6 938 | 0 | 0 | 0 | 1.4 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 232 KiB |
clinical.event_outbox | 6 938 | 0 | 0 | 0 | 3.9 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 128 KiB |
clinical.node_hot | 325 734 | 0 | 0 | 0 | 118.4 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 176 KiB |
clinical.version_hot | 7 038 | 0 | 0 | 0 | 24.3 MiB |
clinical.vo_head | 4 648 | 40 | 5 954 | 5 954 | 1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 40bb79e3a10f on 4 cores against PostgreSQL 18.6.
Schema generation generation-5, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 930 | 5 ms | 6.2 ms | 6.2 ms | 31.8 MiB | 730 000 |
supersede | 810 | 7 ms | 7.9 ms | 7.9 ms | 28.1 MiB | 1 796 592 |
supersede_if_match | 740 | 7.3 ms | 8.2 ms | 8.2 ms | 26.3 MiB | 1 672 155 |
by_version_uid | 7 980 | 577.4 µs | 586.7 µs | 586.7 µs | 120 B | 143 712 |
latest_by_versioned_object_uid | 7 800 | 569.2 µs | 584.5 µs | 584.5 µs | 632 B | 146 803 |
version_at_time | 4 060 | 1.1 ms | 1.1 ms | 1.1 ms | 0 B | 98 940 |
revision_history | 14 000 | 342 µs | 355.6 µs | 355.6 µs | 0 B | 236 366 |
contains_one_ehr | 620 | 7.7 ms | 7.8 ms | 7.8 ms | 0 B | 1 976 026 |
contains_population | 2 040 | 2.4 ms | 2.5 ms | 2.5 ms | 0 B | 527 159 |
flat_2_sibling_leaves | 260 | 18.4 ms | 20.6 ms | 20.6 ms | 0 B | 946 308 |
flat_3_sibling_leaves | 190 | 27.6 ms | 28.3 ms | 28.3 ms | 0 B | 790 531 |
streaming_2_sibling_leaves | 600 | 8.5 ms | 8.6 ms | 8.6 ms | 0 B | 1 771 139 |
streaming_3_sibling_leaves | 570 | 8.9 ms | 9.1 ms | 9.1 ms | 0 B | 1 840 239 |
contains_exists | 340 | 14.7 ms | 15 ms | 15 ms | 0 B | 5 232 561 |
node_predicate | 840 | 6 ms | 6.3 ms | 6.3 ms | 0 B | 1 771 917 |
where_magnitude | 70 | 74.1 ms | 80.7 ms | 80.7 ms | 0 B | 3 372 688 |
where_coded | 740 | 6.8 ms | 7.6 ms | 7.6 ms | 0 B | 1 773 273 |
where_date_time | 750 | 6.6 ms | 6.8 ms | 6.8 ms | 0 B | 1 359 947 |
where_text | 710 | 7.2 ms | 7.6 ms | 7.6 ms | 0 B | 1 755 614 |
wide_projection_one_ehr | 130 | 40.6 ms | 40.7 ms | 40.7 ms | 0 B | 140 801 |
wide_projection_population | 360 | 13.9 ms | 14 ms | 14 ms | 0 B | 1 890 224 |
select_observation | 550 | 8.7 ms | 8.9 ms | 8.9 ms | 0 B | 1 294 608 |
select_composition_one_ehr | 710 | 6.8 ms | 7.5 ms | 7.5 ms | 0 B | 607 419 |
person_identifier_lookup | 860 | 5.6 ms | 5.6 ms | 5.6 ms | 0 B | 77 072 |
ehr_by_subject | 10 470 | 468.1 µs | 502.4 µs | 502.4 µs | 0 B | 14 826 |
aql_version_at_time | 1 140 | 4.4 ms | 4.5 ms | 4.5 ms | 0 B | 1 598 735 |
archive_ehr | 40 | 66.2 ms | 77.8 ms | 77.8 ms | 50 MiB | 1 639 004 |
restore_ehr | 30 | 94.5 ms | 100 ms | 100 ms | 35.5 MiB | 1 082 226 |
retention_prune | 17 970 | 262.8 µs | 279.4 µs | 279.4 µs | 706.8 KiB | 196 365 |
One representative commit wrote 325.2 KiB of WAL and touched 3 962 buffers. The population CONTAINS statement plans as Hash Join and reads 18 304 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 3 648 | 0 | 0 | 0 | 992 KiB |
clinical.contribution | 3 608 | 0 | 0 | 0 | 784 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 3 608 | 0 | 0 | 0 | 1.9 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 152 KiB |
clinical.node_hot | 157 264 | 0 | 0 | 0 | 50.9 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 160 KiB |
clinical.version_hot | 3 628 | 703 | 0 | 0 | 11.5 MiB |
clinical.vo_head | 1 548 | 98 | 5 104 | 5 104 | 576 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 038571f9c7bc on 4 cores against PostgreSQL 18.6.
Schema generation generation-5, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 070 | 4.4 ms | 4.5 ms | 4.5 ms | 35.4 MiB | 929 351 |
supersede | 890 | 6.2 ms | 8.4 ms | 8.4 ms | 30.8 MiB | 2 161 169 |
supersede_if_match | 940 | 6.4 ms | 6.7 ms | 6.7 ms | 31.6 MiB | 2 268 599 |
by_version_uid | 8 660 | 490.7 µs | 609.3 µs | 609.3 µs | 208.4 KiB | 175 072 |
latest_by_versioned_object_uid | 8 980 | 471.9 µs | 513.7 µs | 513.7 µs | 480 B | 159 656 |
version_at_time | 4 340 | 1 ms | 1.1 ms | 1.1 ms | 120 B | 93 911 |
revision_history | 18 310 | 254.5 µs | 257.7 µs | 257.7 µs | 0 B | 292 386 |
contains_one_ehr | 1 160 | 3.7 ms | 3.8 ms | 3.8 ms | 120 B | 384 311 |
contains_population | 2 040 | 2.4 ms | 2.5 ms | 2.5 ms | 0 B | 829 355 |
flat_2_sibling_leaves | 200 | 24.4 ms | 27.5 ms | 27.5 ms | 22.9 KiB | 1 547 845 |
flat_3_sibling_leaves | 160 | 34.5 ms | 35.5 ms | 35.5 ms | 0 B | 1 162 553 |
streaming_2_sibling_leaves | 680 | 7.4 ms | 7.6 ms | 7.6 ms | 0 B | 2 402 326 |
streaming_3_sibling_leaves | 640 | 7.9 ms | 8.2 ms | 8.2 ms | 0 B | 2 123 864 |
contains_exists | 200 | 25.1 ms | 26.3 ms | 26.3 ms | 0 B | 9 821 144 |
node_predicate | 950 | 5.3 ms | 5.4 ms | 5.4 ms | 0 B | 2 131 740 |
where_magnitude | 50 | 106.3 ms | 110 ms | 110 ms | 0 B | 5 892 992 |
where_coded | 770 | 6.6 ms | 6.7 ms | 6.7 ms | 0 B | 2 276 593 |
where_date_time | 890 | 5.6 ms | 5.6 ms | 5.6 ms | 0 B | 2 028 107 |
where_text | 600 | 8.3 ms | 8.4 ms | 8.4 ms | 0 B | 3 066 677 |
wide_projection_one_ehr | 130 | 40.7 ms | 42.2 ms | 42.2 ms | 0 B | 221 332 |
wide_projection_population | 380 | 13.3 ms | 13.7 ms | 13.7 ms | 0 B | 2 193 323 |
select_observation | 640 | 7.5 ms | 7.6 ms | 7.6 ms | 0 B | 1 588 428 |
select_composition_one_ehr | 560 | 8.7 ms | 9.1 ms | 9.1 ms | 0 B | 609 582 |
person_identifier_lookup | 920 | 5.4 ms | 5.7 ms | 5.7 ms | 0 B | 85 064 |
ehr_by_subject | 11 750 | 426.1 µs | 439.4 µs | 439.4 µs | 0 B | 31 884 |
aql_version_at_time | 1 230 | 4.1 ms | 4.2 ms | 4.2 ms | 0 B | 1 718 186 |
archive_ehr | 20 | 123.3 ms | 126.4 ms | 126.4 ms | 53.6 MiB | 1 517 281 |
restore_ehr | 20 | 152.9 ms | 153.8 ms | 153.8 ms | 50.7 MiB | 1 512 465 |
retention_prune | 20 250 | 211.6 µs | 246.1 µs | 246.1 µs | 0 B | 195 448 |
One representative commit wrote 522.1 KiB of WAL and touched 4 037 buffers. The population CONTAINS statement plans as Hash Join and reads 15 262 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 7 168 | 0 | 0 | 0 | 1.8 MiB |
clinical.contribution | 6 968 | 0 | 0 | 0 | 1.2 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 232 KiB |
clinical.event_outbox | 6 968 | 0 | 0 | 0 | 3.5 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 128 KiB |
clinical.node_hot | 327 024 | 0 | 0 | 0 | 107.6 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 176 KiB |
clinical.version_hot | 7 068 | 0 | 0 | 0 | 24.4 MiB |
clinical.vo_head | 4 628 | 55 | 6 004 | 6 002 | 1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 038571f9c7bc on 4 cores against PostgreSQL 18.6.
Schema generation generation-6, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 090 | 4.4 ms | 4.5 ms | 4.5 ms | 36.1 MiB | 824 416 |
supersede | 1 140 | 4.9 ms | 5.6 ms | 5.6 ms | 6.6 MiB | 2 107 333 |
supersede_if_match | 1 150 | 4.9 ms | 5.6 ms | 5.6 ms | 6.8 MiB | 2 137 821 |
by_version_uid | 13 890 | 330.1 µs | 341.8 µs | 341.8 µs | 264 B | 247 429 |
latest_by_versioned_object_uid | 14 090 | 319.2 µs | 325.3 µs | 325.3 µs | 61.3 KiB | 267 480 |
version_at_time | 6 470 | 720.1 µs | 730 µs | 730 µs | 0 B | 155 540 |
revision_history | 28 310 | 171.1 µs | 172.5 µs | 172.5 µs | 0 B | 475 590 |
contains_one_ehr | 1 100 | 4.1 ms | 4.2 ms | 4.2 ms | 0 B | 1 980 115 |
contains_population | 3 110 | 1.6 ms | 1.6 ms | 1.6 ms | 0 B | 856 480 |
flat_2_sibling_leaves | 390 | 12.2 ms | 12.3 ms | 12.3 ms | 120 B | 1 465 992 |
flat_3_sibling_leaves | 310 | 15.7 ms | 15.9 ms | 15.9 ms | 88 B | 1 132 214 |
streaming_2_sibling_leaves | 890 | 5.7 ms | 5.8 ms | 5.8 ms | 0 B | 2 762 965 |
streaming_3_sibling_leaves | 820 | 6.1 ms | 6.3 ms | 6.3 ms | 0 B | 2 809 134 |
contains_exists | 610 | 8.2 ms | 8.3 ms | 8.3 ms | 0 B | 8 183 528 |
node_predicate | 1 270 | 4 ms | 4 ms | 4 ms | 0 B | 2 450 930 |
where_magnitude | 100 | 53.1 ms | 54 ms | 54 ms | 0 B | 5 256 697 |
where_coded | 1 070 | 4.7 ms | 4.8 ms | 4.8 ms | 0 B | 2 293 782 |
where_date_time | 1 120 | 4.5 ms | 4.5 ms | 4.5 ms | 0 B | 2 204 262 |
where_text | 1 040 | 4.8 ms | 4.9 ms | 4.9 ms | 0 B | 2 345 683 |
wide_projection_one_ehr | 170 | 29.2 ms | 29.3 ms | 29.3 ms | 232 B | 206 013 |
wide_projection_population | 530 | 9.5 ms | 9.7 ms | 9.7 ms | 0 B | 2 498 769 |
select_observation | 800 | 6 ms | 6.2 ms | 6.2 ms | 0 B | 2 022 934 |
select_composition_one_ehr | 1 200 | 4 ms | 4.1 ms | 4.1 ms | 0 B | 936 215 |
person_identifier_lookup | 1 140 | 4.2 ms | 4.3 ms | 4.3 ms | 0 B | 95 966 |
ehr_by_subject | 17 670 | 282.1 µs | 284.3 µs | 284.3 µs | 0 B | 21 941 |
aql_version_at_time | 1 840 | 2.7 ms | 2.7 ms | 2.7 ms | 0 B | 2 245 246 |
archive_ehr | 140 | 20.3 ms | 26.7 ms | 26.7 ms | 158.7 MiB | 9 870 317 |
restore_ehr | 140 | 19.2 ms | 20.2 ms | 20.2 ms | 157.9 MiB | 9 981 072 |
retention_prune | 30 680 | 163.4 µs | 165.1 µs | 165.1 µs | 8.1 KiB | 312 083 |
One representative commit wrote 282.3 KiB of WAL and touched 3 975 buffers. The population CONTAINS statement plans as Nested Loop and reads 18 152 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 4 548 | 0 | 0 | 0 | 1.3 MiB |
clinical.contribution | 4 508 | 0 | 0 | 0 | 840 KiB |
clinical.ehr | 40 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 4 508 | 0 | 0 | 0 | 2.2 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 136 KiB |
clinical.node_hot | 74 704 | 0 | 0 | 0 | 54.3 MiB |
clinical.template_ref | 4 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 4 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 336 KiB |
clinical.version_hot | 4 528 | 0 | 0 | 0 | 20.7 MiB |
clinical.vo_head | 1 708 | 0 | 15 132 | 15 132 | 648 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 82225d6a88d8 on 4 cores against PostgreSQL 18.6.
Schema generation generation-6, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 070 | 4.4 ms | 4.5 ms | 4.5 ms | 35.5 MiB | 926 429 |
supersede | 1 180 | 4.8 ms | 5.5 ms | 5.5 ms | 7.5 MiB | 2 272 609 |
supersede_if_match | 1 160 | 4.8 ms | 5.6 ms | 5.6 ms | 6.8 MiB | 2 184 054 |
by_version_uid | 13 600 | 329.9 µs | 333.3 µs | 333.3 µs | 78.6 KiB | 252 125 |
latest_by_versioned_object_uid | 14 540 | 317.9 µs | 320 µs | 320 µs | 456 B | 269 207 |
version_at_time | 6 300 | 728.4 µs | 745.3 µs | 745.3 µs | 0 B | 144 639 |
revision_history | 27 680 | 171.3 µs | 174.4 µs | 174.4 µs | 0 B | 467 444 |
contains_one_ehr | 1 730 | 2.7 ms | 2.7 ms | 2.7 ms | 120 B | 612 490 |
contains_population | 2 530 | 2 ms | 2 ms | 2 ms | 0 B | 1 554 199 |
flat_2_sibling_leaves | 330 | 14.9 ms | 16.4 ms | 16.4 ms | 136 B | 1 698 808 |
flat_3_sibling_leaves | 250 | 20 ms | 20.1 ms | 20.1 ms | 0 B | 1 224 810 |
streaming_2_sibling_leaves | 850 | 5.9 ms | 6 ms | 6 ms | 0 B | 3 086 520 |
streaming_3_sibling_leaves | 810 | 6.2 ms | 6.2 ms | 6.2 ms | 0 B | 3 187 586 |
contains_exists | 530 | 9.3 ms | 9.4 ms | 9.4 ms | 0 B | 5 934 249 |
node_predicate | 1 190 | 4.2 ms | 4.3 ms | 4.3 ms | 0 B | 2 879 980 |
where_magnitude | 70 | 72.7 ms | 72.9 ms | 72.9 ms | 0 B | 4 837 545 |
where_coded | 1 180 | 4.2 ms | 4.3 ms | 4.3 ms | 0 B | 2 485 551 |
where_date_time | 1 090 | 4.6 ms | 4.7 ms | 4.7 ms | 0 B | 2 683 370 |
where_text | 760 | 6.6 ms | 6.6 ms | 6.6 ms | 176 B | 4 173 294 |
wide_projection_one_ehr | 160 | 31.1 ms | 31.3 ms | 31.3 ms | 0 B | 307 413 |
wide_projection_population | 530 | 9.4 ms | 9.4 ms | 9.4 ms | 0 B | 2 549 897 |
select_observation | 740 | 6.5 ms | 6.5 ms | 6.5 ms | 0 B | 2 396 855 |
select_composition_one_ehr | 750 | 6.6 ms | 6.8 ms | 6.8 ms | 0 B | 907 948 |
person_identifier_lookup | 1 110 | 4.4 ms | 4.4 ms | 4.4 ms | 56 B | 99 530 |
ehr_by_subject | 16 820 | 293.6 µs | 305.4 µs | 305.4 µs | 0 B | 42 024 |
aql_version_at_time | 1 560 | 3.1 ms | 3.2 ms | 3.2 ms | 0 B | 2 400 330 |
archive_ehr | 80 | 34.8 ms | 45.8 ms | 45.8 ms | 204 MiB | 12 202 858 |
restore_ehr | 70 | 34.7 ms | 35.8 ms | 35.8 ms | 152.7 MiB | 16 221 567 |
retention_prune | 30 880 | 160.5 µs | 161 µs | 161 µs | 1.8 MiB | 390 958 |
One representative commit wrote 269.7 KiB of WAL and touched 1 182 buffers. The population CONTAINS statement plans as Hash Join and reads 5 530 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 7 678 | 0 | 0 | 0 | 2 MiB |
clinical.contribution | 7 478 | 0 | 0 | 0 | 1.3 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 136 KiB |
clinical.event_outbox | 7 478 | 0 | 0 | 0 | 3.8 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 120 KiB |
clinical.node_hot | 222 104 | 0 | 0 | 0 | 129.5 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 312 KiB |
clinical.version_hot | 7 578 | 0 | 0 | 0 | 39.2 MiB |
clinical.vo_head | 4 628 | 8 | 15 886 | 15 886 | 1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 82225d6a88d8 on 4 cores against PostgreSQL 18.6.
The published figures
The figures below are the last ones measured with the earlier generation of
the instrument, the Veredictum 0.1 line: a proof-of-concept class run, the
step-load stress ladder and the AQL probe, against FerroEHR 4.3.0. Veredictum
0.3.1 replaced those three instruments with perf, so they cannot be re-run. A perf-result record measured on the reference host replaces them,
and these charts and their records go with it.
| Class | Corpus | Offered-load floor | p99 budget | Error budget | Measured sustained | Verdict |
|---|---|---|---|---|---|---|
| POC | cnf.scale.10k | 2/s | ≤ 1000 ms | 0 | 2.0/s | EARNED |
| S | cnf.scale.100k | 15/s | ≤ 1000 ms | 0 | — | not measured |
| L | cnf.scale.1m | 150/s | ≤ 1000 ms | 0 | — | not measured |
| R | cnf.scale.10m | 1500/s | ≤ 1000 ms | 0 | — | not measured |
Measured run PERF-hospital_sim-class_POC — class POC, offered load 2.04/s sustained over 3600 s (after 300 s warmup), environment: consumer-laptop (8 cores, 16 GB, nvme, single-node docker compose (8-CPU/8GB Docker VM) on Apple M2, the SMART resource-server posture (docker/sut-smart.yml overlays the base stack) with the external-terminology profile composed beside it (a seeded HAPI FHIR R4 server, docker compose –profile terminology + docker/sut-terminology.yml, fail-open); alongside it a second deployment of the same image in the openPGP version-signing posture (project ferroehr-cnf-pgp, docker/sut-signing-pgp.yml + docker/sut-terminology-failclosed.yml + docker/sut-pgp-parallel.yml, host port 8081) declared as the sut_pgp instance, which carries the fail-closed terminology posture — the measured-performance stage drives the primary deployment alone).
| Operation | Requests | Errors | p50 (ms) | p90 (ms) | p99 (ms) |
|---|---|---|---|---|---|
| adhoc_query | 792 | 0 | 29 | 38 | 64 |
| admin_contribution_report | 60 | 0 | 159 | 176 | 269 |
| analytics_query | 23 | 0 | 62 | 76 | 197 |
| archetype_adl2_list | 60 | 0 | 13 | 18 | 28 |
| composition_commit | 280 | 0 | 50 | 106 | 214 |
| composition_commit_flat | 7 | 0 | 42 | 53 | 53 |
| composition_delete | 4 | 0 | 28 | 35 | 35 |
| composition_read | 1583 | 0 | 24 | 33 | 66 |
| composition_read_current | 896 | 0 | 27 | 36 | 57 |
| composition_read_flat | 7 | 0 | 17 | 25 | 25 |
| composition_revision_history | 889 | 0 | 14 | 21 | 31 |
| composition_update | 68 | 0 | 46 | 67 | 239 |
| composition_version_read | 30 | 0 | 28 | 35 | 49 |
| contribution_commit | 48 | 0 | 54 | 138 | 187 |
| contribution_read | 82 | 0 | 20 | 28 | 60 |
| directory_create | 12 | 0 | 25 | 40 | 86 |
| directory_read | 803 | 0 | 17 | 24 | 40 |
| directory_update | 12 | 0 | 28 | 34 | 42 |
| ehr_create | 12 | 0 | 28 | 32 | 33 |
| ehr_extract_export | 792 | 0 | 149 | 182 | 268 |
| ehr_read | 72 | 0 | 18 | 25 | 37 |
| ehr_status_read | 24 | 0 | 16 | 23 | 25 |
| ehr_status_update | 24 | 0 | 21 | 36 | 55 |
| party_create | 6 | 0 | 22 | 28 | 28 |
| party_read | 6 | 0 | 16 | 24 | 24 |
| party_relationship_create | 6 | 0 | 26 | 30 | 30 |
| party_relationship_read | 6 | 0 | 11 | 17 | 17 |
| party_update | 6 | 0 | 15 | 27 | 27 |
| readonly_write_denied | 7 | 0 | 30 | 46 | 46 |
| smart_configuration_read | 7 | 0 | 15 | 24 | 24 |
| stored_query_execute | 180 | 0 | 41 | 55 | 103 |
| system_options | 7 | 0 | 10 | 18 | 18 |
| tags_put | 30 | 0 | 24 | 33 | 41 |
| tags_read | 30 | 0 | 17 | 26 | 38 |
| tdd_import | 7 | 0 | 35 | 60 | 60 |
| template_adl2_list | 61 | 0 | 13 | 19 | 54 |
| template_example | 60 | 0 | 30 | 102 | 261 |
| template_get | 60 | 0 | 64 | 134 | 240 |
| template_list | 60 | 0 | 53 | 80 | 90 |
| terminology_query | 23 | 0 | 19 | 26 | 73 |
| unauthenticated_probe | 7 | 0 | 18 | 23 | 23 |
| ward_query | 180 | 0 | 28 | 38 | 71 |
Resources (measured context, never a verdict input) — sampled every 10 s; CPU/RSS derived over the measured phase:
| Container | CPU mean | CPU peak | RSS peak |
|---|---|---|---|
sut ferroehr-cnf-ferroehr-1 | 3.6% | 7.7% | 218 MB |
db ferroehr-cnf-ferroehr-postgres-1 | 5.9% | 21.0% | 1.5 GB |
Disk anchors: empty 133 MB → after scale seed 13 GB (≈ 13 KB / composition over 1,000,000 committed) → after ward seed 13 GB → after window 13 GB.