solid-objects 1.0.7 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,224 +3,185 @@
3
3
  The benchmark harness measures committed actor operations. It shows tradeoffs and catches large
4
4
  regressions. It does not predict application capacity.
5
5
 
6
- ## Version 1.0.5 measurements
7
-
8
- The current dataset runs the released `v1.0.5` source at commit
9
- `8975f6e2ad94c114f3638cea8f167956061a9bc3`. The runtime source is unchanged; the measurement harness
10
- is overlaid from this repository. Every JSON report records that source revision, runtime source and
11
- built-artifact SHA-256 values, harness SHA-256, the loaded package version, actual driver versions,
12
- database version, host, and Node version. At collection time, the development branch also reported
13
- 1.0.5 but contained SQLite WAL changes absent from the release tag. Use the recorded source and
14
- artifact hashes to reproduce the measured 1.0.5 implementation. Version 1.0.6 includes the later
15
- SQLite WAL changes.
16
-
17
- The archived reports were collected with harness revision
18
- `da5fe31b1ffa18eca92ce43fc26bca619d424d6e`. They verified committed operation
19
- counts. The current collector additionally verifies cart quantities, totals, and
20
- one pending effect with the correct total for every committed operation, after
21
- the timed interval. Those additional assertions were not run retrospectively on
22
- the archived measurements.
23
-
24
- ### Recorded environment and results
25
-
26
- Measured November 7, 2026 on Apple M2 Ultra, 24 logical CPUs, 64 GiB RAM, darwin 27.2.0, and Node.js
27
- v24.18.0. Drivers were pg 8.23.0 and mysql2 3.23.3.
28
-
29
- The workstation was concurrently used for other development tasks. CPU and storage activity were
30
- shared. Absolute timings and workload comparisons require controlled repeats before capacity
31
- planning. For example, the three SQLite four-process synchronous hot-counter samples were 17.89,
32
- 20.69, 79.42 operations/second. Every sample is retained.
33
-
34
- [Complete tables and raw reports](../benchmarks/results/v1.0.5-2026-11-07/README.md)
35
- include all 216 matrix rows, 12 state-size rows, three idle rows, and 57,600 individual operation
36
- latencies.
37
-
38
- | Database | Version | Durability settings |
39
- | ---------- | ---------------- | ------------------------------------------- |
40
- | sqlite | 3.53.1 | `journalMode=delete, synchronous=2` |
41
- | postgresql | 16.15 (Homebrew) | `fsync=on, synchronousCommit=on` |
42
- | mysql | 26.10.0 | `innodbFlushLogAtTrxCommit=1, syncBinlog=1` |
43
-
44
- The next table shows synchronous handlers with four worker processes. One-process and
45
- yielding-handler results are in the complete tables.
46
-
47
- | Database | Workload | Shape | ops/s | p50 ms | p95 ms | p99 ms |
48
- | ---------- | ----------- | --------- | -----: | ------: | -------: | -------: |
49
- | sqlite | counter | warm-hot | 20.69 | 733.52 | 1,595.35 | 1,754.31 |
50
- | sqlite | counter | warm-many | 13.51 | 818.09 | 3,205.47 | 6,056.1 |
51
- | sqlite | counter | cold-many | 5.77 | 2,497.5 | 5,538.34 | 6,346.58 |
52
- | sqlite | cart-outbox | warm-hot | 106.27 | 147.92 | 205.03 | 283.86 |
53
- | sqlite | cart-outbox | warm-many | 56.87 | 264.62 | 454.1 | 588.05 |
54
- | sqlite | cart-outbox | cold-many | 35.4 | 393.17 | 1,037.9 | 1,286.45 |
55
- | postgresql | counter | warm-hot | 88.84 | 160.37 | 275.92 | 293.19 |
56
- | postgresql | counter | warm-many | 146.88 | 70.92 | 176.45 | 1,103.97 |
57
- | postgresql | counter | cold-many | 20.25 | 808.09 | 1,069.78 | 1,140.48 |
58
- | postgresql | cart-outbox | warm-hot | 99.15 | 159.81 | 227.97 | 244.67 |
59
- | postgresql | cart-outbox | warm-many | 107.12 | 93.49 | 253.75 | 1,307.5 |
60
- | postgresql | cart-outbox | cold-many | 21.56 | 651.8 | 979.4 | 1,056.95 |
61
- | mysql | counter | warm-hot | 72.5 | 200.22 | 328.44 | 390.64 |
62
- | mysql | counter | warm-many | 105.16 | 58.47 | 363.58 | 1,728.53 |
63
- | mysql | counter | cold-many | 31.69 | 445.1 | 935.43 | 1,060.47 |
64
- | mysql | cart-outbox | warm-hot | 52.96 | 287.93 | 408.07 | 446.53 |
65
- | mysql | cart-outbox | warm-many | 74.75 | 134.94 | 549.13 | 1,926.81 |
66
- | mysql | cart-outbox | cold-many | 20.69 | 720.19 | 1,118.29 | 1,176.44 |
67
-
68
- State-size results use sequential operations on one actor in a SQLite file:
69
-
70
- | Payload KiB | Persisted state bytes | ops/s | p50 ms | p95 ms | p99 ms |
71
- | ----------: | --------------------: | ----: | -----: | -----: | -----: |
72
- | 0 | 26 | 93.6 | 9.29 | 21.09 | 26.88 |
73
- | 16 | 16,410 | 86.65 | 10.4 | 21.12 | 26.33 |
74
- | 128 | 131,098 | 70.4 | 12.86 | 22.93 | 27.15 |
75
- | 1,024 | 1,048,602 | 42.27 | 22.55 | 33.05 | 42.64 |
76
-
77
- Idle CPU uses one timed sample per interval, in-memory SQLite, and all four polling roles:
78
-
79
- | Fast interval ms | Empty polls/s | Process CPU |
80
- | ---------------: | ------------: | ----------: |
81
- | 20 | 4 | 0.12% |
82
- | 100 | 4 | 0.12% |
83
- | 500 | 4 | 0.1% |
84
-
85
- ### Workloads and measurement boundary
86
-
87
- The counter matrix includes one hot identity, 100 warm identities, and newly created identities,
88
- each with synchronous and yielding handlers and one or four processes. A second matrix uses a cart
89
- with 20 line items. Every cart operation updates a quantity, recalculates the total, and commits one
90
- outbox effect with the actor state. Effect workers are disabled: the cart results measure durable
91
- outbox staging, not delivery to an external service. The yielding handler uses `setImmediate()`; it
92
- does not model external network latency.
93
-
94
- Each scenario has three separate samples of 250 measured operations after 25 warmup operations, at
95
- client concurrency 16 and four actor workers. Counters are verified against all submitted operations
96
- after the timed batch. Tables report the median of each statistic across the three samples.
97
- Percentiles use nearest rank within each sample; samples are not pooled. The raw JSON retains all
98
- operation latencies, including slow samples. This short run is a development measurement, not a soak
99
- test or an application capacity guarantee.
100
-
101
- The state-size run has three samples of 300 operations after 25 warmups, at concurrency one. It
102
- verifies final committed count and payload size, records actual serialized state bytes, and retains
103
- operation latencies. Idle CPU uses three seconds of warmup and ten seconds of measurement per
104
- polling interval. The historical idle wake-up latency table below has not been rerun as part of this
105
- dataset.
106
-
107
- ### Reproduce the released runtime
108
-
109
- Use a separate checkout so later runtime changes cannot enter the result. Install the locked
110
- dependencies and overlay the measurement harness from the commit containing this dataset before
111
- building the runtime:
112
-
113
- ```bash
114
- # Run from your normal checkout; pin the collector used by the archived reports.
115
- repository_root=$(pwd)
116
- harness_ref=da5fe31b1ffa18eca92ce43fc26bca619d424d6e
117
- # To collect new results with the stronger verifier instead:
118
- # harness_ref=$(git rev-parse HEAD)
119
- git worktree add --detach /tmp/solid-objects-v1.0.5 v1.0.5
120
- git archive "$harness_ref" benchmarks | tar -x -C /tmp/solid-objects-v1.0.5
121
- cd /tmp/solid-objects-v1.0.5
122
- pnpm install --frozen-lockfile
123
- pnpm exec tsc -p tsconfig.build.json
124
- git diff --exit-code v1.0.5 -- src
125
-
126
- node benchmarks/run.ts --database sqlite --workload counter \
127
- --operations 250 --warmup 25 --repetitions 3 > sqlite-counter.json
128
- node benchmarks/run.ts --database sqlite --workload cart-outbox \
129
- --operations 250 --warmup 25 --repetitions 3 > sqlite-cart-outbox.json
130
- node benchmarks/large-state.ts --operations 300 --warmup 25 \
131
- --repetitions 3 > sqlite-large-state.json
132
- node benchmarks/idle.ts > sqlite-idle.json
133
- cd "$repository_root"
134
- ```
135
-
136
- Repeat the matrix with `--database postgresql` and `--database mysql` and the benchmark URLs shown
137
- below, using disposable local databases. Reports contain driver versions and durability settings
138
- without connection URLs or credentials. Run all scenarios sequentially. Use the recorded host, Node,
139
- database settings, and driver versions when comparing results; ordinary shared-host activity and
140
- storage behavior still affect them.
141
-
142
- Generate the complete tables from the retained reports with:
143
-
144
- ```bash
145
- node benchmarks/summarize.mjs benchmarks/results/v1.0.5-2026-11-07/*.json
146
- ```
147
-
148
- The summarizer rejects mixed runtime/harness provenance, missing scenarios or samples, and missing
149
- per-operation latencies. Keep the per-sample JSON when reporting a median so the variability remains
150
- reviewable.
151
-
152
- The August measurements below retain their original versions, hardware, and methodology.
153
-
154
- ## Idle polling
155
-
156
- The idle harness measures process CPU and empty database passes for the four runtime roles:
157
-
158
- ```bash
159
- pnpm run benchmark:idle
160
- ```
161
-
162
- It warms each interval for three seconds, measures for ten seconds, and reports process user plus
163
- system CPU time divided by wall time.
164
-
165
- Measured on August 16, 2026 on an Apple M5 with Node.js 26.7.0 and in-memory SQLite. The before run
166
- used 0.13.0; the after run used the prepared 0.13.1 tree. Each run started one actor, effect,
167
- reminder, and broadcast role.
168
-
169
- | Fast interval | Before polls/s | Before CPU | After polls/s | After CPU |
170
- | ------------: | -------------: | ---------: | ------------: | --------: |
171
- | 20 ms | 188.78 | 3.254% | 4.000 | 0.129% |
172
- | 100 ms | 39.596 | 0.906% | 3.999 | 0.121% |
173
- | 500 ms | 7.999 | 0.251% | 3.999 | 0.104% |
174
-
175
- The after run reached the one-second ceiling for all four roles. These are developer-laptop
176
- measurements, not a CPU guarantee; timer scheduling, JIT, database path, and unrelated host activity
177
- affect short samples.
178
-
179
- Five SQLite samples measured durable enqueue through committed completion after 2.5 seconds of
180
- idleness. The polling-only multi-process harness submits just after an empty pass, so it measures
181
- approximately the full polling wait rather than average arrival latency.
182
-
183
- | Topology | 0.13.0 p50 | Prepared 0.13.1 p50 |
184
- | ------------------------------- | ---------: | ------------------: |
185
- | One process, in-process wake-up | 2.589 ms | 2.662 ms |
186
- | Two processes, polling only | 107.945 ms | 1,006.232 ms |
187
-
188
- The local wake-up keeps the one-process path prompt after backoff. The polling-only row is the
189
- explicit tradeoff: use PostgreSQL notifications or optional Redis Pub/Sub when separate processes
190
- need low-latency delivery.
6
+ ## Which measurements answer which question?
7
+
8
+ A package version is not a benchmark result. Read the release, hardware, database settings,
9
+ workload and harness together. Numbers from different environments do not establish a code
10
+ regression or speedup. In particular, dividing the August M5 figures by the November busy-Mac
11
+ figures is not a release comparison.
12
+
13
+ | Dataset | Runtime measured | Environment | What it establishes |
14
+ | ----------------------------------------------------------------------------------------------------------- | -------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------- |
15
+ | [Controlled SQLite/PostgreSQL](../benchmarks/results/js-release-comparison-incomplete-2026-11-09/README.md) | 0.14.0, 1.0.5, 1.0.6 | One dedicated c-8, November 9 UTC | Complete backend plans from an incomplete matrix; MySQL failed its state check |
16
+ | [Modern MySQL comparison](../benchmarks/results/js-mysql-release-comparison-2026-11-09/README.md) | 1.0.5, 1.0.6 | Another dedicated c-8, November 9 UTC | Complete same-host MySQL comparison; no ranking against the failed 0.14.0 condition |
17
+ | [Isolated baseline](../benchmarks/results/v1.0.5-isolated-2026-11-08/README.md) | 1.0.5 | Dedicated DigitalOcean c-8, November 8 | Reproducible single-version baseline, including raw samples and confirmed teardown |
18
+ | [Shared workstation](../benchmarks/results/v1.0.5-2026-11-07/README.md) | 1.0.5 | Busy M2 Ultra, November 7 | Historical observations; unsuitable for attributing a version regression |
19
+ | [August archive](benchmarks-history.md#historical-august-0140-matrix) | 0.14.0 (matrix), 0.14.3/0.14.4 (state sizes) | M5 developer laptop | Historical measurements in their original environments |
20
+
21
+ The [dataset catalog](../benchmarks/results/index.json) records measured versions and environment
22
+ classes. `pnpm run check:benchmarks` verifies those labels against raw reports, rechecks summaries,
23
+ and requires successful download and confirmed teardown for isolated cloud datasets. CI runs this
24
+ check; a new release does not change any existing dataset's measured version. Headline tables
25
+ are generated from those same reports with `pnpm run check:benchmarks --write-guide` and checked
26
+ for stale values in CI.
27
+
28
+ Version 1.0.6 changes file-backed SQLite from DELETE/FULL to WAL/NORMAL. That changes both
29
+ journal behavior and power-loss durability. Its results must be labeled separately from
30
+ 1.0.5, with WAL/FULL measured as a separate control. Do not relabel a 1.0.5 dataset as 1.0.6.
31
+
32
+ The [1,000-operation feasibility pilot](../benchmarks/results/js-release-comparison-pilot-2026-11-09/README.md)
33
+ was stopped when the first SQLite round projected a matrix beyond its original three-hour guard.
34
+ The replacement fixed 500 operations before provisioning a fresh VM. All pilot reports and its stop
35
+ reason remain separate diagnostics; none is pooled into the replacement.
36
+
37
+ ## Controlled releases: SQLite and PostgreSQL
38
+
39
+ The November 9 (UTC) experiment completed every planned SQLite and PostgreSQL condition on one
40
+ DigitalOcean c-8: five fresh-process rounds per variant, 500 measured operations after 100 warmups,
41
+ four worker processes, synchronous counters, three identity shapes, and client concurrency 1/16.
42
+ The table summarizes 70 complete reports and 105,000 measured operation latencies. Each report
43
+ starts fresh client/worker processes and measures warm-hot, warm-many, then cold-many in that order;
44
+ processes reset between reports.
45
+
46
+ The **parent matrix is incomplete**: 0.14.0's MySQL `warm-many` state check returned actor count 8,
47
+ expected 7, in round 3 at concurrency 1. Its cause is unconfirmed. All emitted reports and failure
48
+ diagnostics remain in the [failed parent archive](../benchmarks/results/js-release-comparison-incomplete-2026-11-09/README.md).
49
+ Only the complete predeclared backend plans are summarized; no rounds or versions are dropped within
50
+ a backend. `summarize-completed.mjs` derives every complete backend from the unchanged original plan,
51
+ and CI rechecks that exact scope. MySQL's incomplete prefix does not supply a three-release ranking.
52
+
53
+ All variants use the same Node 24.18.0, locked dependencies, SQL drivers, compiler and workload
54
+ harness. Released runtime source is unchanged. The explicit polling interval is 5 ms, idle ceiling
55
+ 1,000 ms and pool limit 20 per runtime. Wake-up selection preserves release defaults: 0.14.0 uses
56
+ in-process signals with cross-process polling; 1.0.5/1.0.6 can select PostgreSQL notifications after a successful
57
+ probe. No Redis is configured. The experiment compares those defaults under common explicit options;
58
+ it does not isolate every runtime feature.
59
+
60
+ SQLite's 0.14.0/1.0.5 defaults are DELETE/FULL. Version 1.0.6 is measured as both WAL/NORMAL
61
+ (`v1.0.6-default`) and WAL/FULL (`v1.0.6-wal-full`). NORMAL can lose recent committed transactions
62
+ after power loss or an OS crash; FULL flushes each commit. Treat them as separate configurations.
63
+
64
+ These are medians of five samples, in committed operations per second. The
65
+ [complete-backend tables](../benchmarks/results/js-release-comparison-incomplete-2026-11-09/README.md)
66
+ retain minimum/maximum throughput, p50/p99 and every operation latency.
67
+
68
+ <!-- benchmark-table: js-release-comparison-incomplete-2026-11-09 -->
69
+
70
+ | Database | Concurrency | Shape | v0.14.0-default ops/s | v1.0.5-default ops/s | v1.0.6-default ops/s | v1.0.6-wal-full ops/s |
71
+ | ---------- | ----------: | --------- | --------------------: | -------------------: | -------------------: | --------------------: |
72
+ | sqlite | 1 | warm-hot | 89.33 | 112.76 | 356.72 | 261.03 |
73
+ | sqlite | 1 | warm-many | 21.42 | 25.39 | 61.46 | 61.22 |
74
+ | sqlite | 1 | cold-many | 14.86 | 16.57 | 39.46 | 35.39 |
75
+ | sqlite | 16 | warm-hot | 168.43 | 166.35 | 549.58 | 343.35 |
76
+ | sqlite | 16 | warm-many | 50.27 | 48.49 | 103.72 | 78.09 |
77
+ | sqlite | 16 | cold-many | 21.85 | 21.89 | 34.46 | 30.56 |
78
+ | postgresql | 1 | warm-hot | 79.03 | 93.28 | 94.44 | n/a |
79
+ | postgresql | 1 | warm-many | 21.63 | 35.41 | 35.64 | n/a |
80
+ | postgresql | 1 | cold-many | 23.66 | 19.87 | 19.92 | n/a |
81
+ | postgresql | 16 | warm-hot | 100.14 | 80 | 80.82 | n/a |
82
+ | postgresql | 16 | warm-many | 91.44 | 121.29 | 120.34 | n/a |
83
+ | postgresql | 16 | cold-many | 19.72 | 19.38 | 19.27 | n/a |
84
+
85
+ <!-- /benchmark-table: js-release-comparison-incomplete-2026-11-09 -->
86
+
87
+ The results answer the earlier version questions:
88
+
89
+ - The old 25-fold SQLite decline is **not reproduced**. At concurrency 16, the matched hot-actor
90
+ medians are 168.43 ops/s on 0.14.0 and 166.35 on 1.0.5, with overlapping sample ranges.
91
+ Warm-many and cold-many are also close. At concurrency 1, 1.0.5 has higher median throughput in
92
+ all three SQLite shapes. The August/busy-Mac ratios did not measure a code regression.
93
+ - PostgreSQL has workload-specific tradeoffs. At concurrency 16, the hot-actor median falls from
94
+ 100.14 to 80.00 ops/s (20.1%), while warm-many rises from 91.44 to 121.29 (32.6%). At concurrency 1,
95
+ cold-many falls from 23.66 to 19.87 (16.0%). These are findings to investigate with profiling;
96
+ this experiment does not attribute them to one particular feature.
97
+ - SQLite 1.0.6 improves the hot-actor median even with FULL synchronization: 343.35 versus 166.35
98
+ ops/s at concurrency 16, about 2.06 times the throughput. WAL/NORMAL reaches 549.58, about
99
+ 3.30 times, with the stated durability tradeoff. State-size and application workloads need their
100
+ own measurements.
101
+ - PostgreSQL 1.0.6 is close to 1.0.5 in these samples. Independent rebuilds show that their emitted
102
+ JavaScript differs only in the SQLite adapter and version constant. Small PostgreSQL/MySQL
103
+ differences are not evidence of a new 1.0.6 runtime optimization.
104
+
105
+ The host passed sustained CPU, storage and load quiet checks before every backend/round/concurrency
106
+ block, and version order rotated within rounds. Source, compiled-code and harness hashes were
107
+ independently reproduced. The archive was downloaded and verified, then the VM was confirmed deleted.
108
+ A recorded supervision handoff extended the controller window without restarting the collector or
109
+ changing the sampling plan. See [lifecycle and operator events](../benchmarks/results/js-release-comparison-incomplete-2026-11-09/operator-events.jsonl).
110
+
111
+ ## Controlled releases: MySQL 1.0.5 and 1.0.6
112
+
113
+ The [fresh MySQL comparison](../benchmarks/results/js-mysql-release-comparison-2026-11-09/README.md)
114
+ completed all five rounds: 20 reports, 60 scenario samples and 30,000 measured operation latencies.
115
+ Its source, harness, Node, driver lock, four workers, 500-operation batches, 100 warmups, shapes and
116
+ concurrency settings match the recorded plan. State verification passed for every report. The
117
+ archive was downloaded, checksum-verified and the VM confirmed deleted.
118
+
119
+ This uses **another c-8 host**, an Intel Xeon Platinum 8280. Compare releases within this table;
120
+ its rates are not directly comparable to another droplet's database results. No samples from the
121
+ failed three-release MySQL prefix were reused. The 0.14.0 assertion still prevents a trustworthy
122
+ three-release MySQL ranking; its cause remains unconfirmed.
123
+
124
+ <!-- benchmark-table: js-mysql-release-comparison-2026-11-09 -->
125
+
126
+ | Database | Concurrency | Shape | v1.0.5-default ops/s | v1.0.6-default ops/s |
127
+ | -------- | ----------: | --------- | -------------------: | -------------------: |
128
+ | mysql | 1 | warm-hot | 61.25 | 58.02 |
129
+ | mysql | 1 | warm-many | 19.07 | 19.6 |
130
+ | mysql | 1 | cold-many | 15.87 | 15.41 |
131
+ | mysql | 16 | warm-hot | 46.63 | 47.21 |
132
+ | mysql | 16 | warm-many | 75.62 | 76.44 |
133
+ | mysql | 16 | cold-many | 16.86 | 16.88 |
134
+
135
+ <!-- /benchmark-table: js-mysql-release-comparison-2026-11-09 -->
136
+
137
+ At concurrency 16, throughput medians differ by at most 1.3% across the three shapes. At concurrency 1,
138
+ the hot-actor median is 61.25 ops/s for 1.0.5 and 58.02 for 1.0.6 (5.3% lower). Warm-many remains noisy:
139
+ its concurrency-one throughput spans 9.37–20.51 ops/s for 1.0.5 and 14.82–22.41 for 1.0.6. At concurrency
140
+ 16 the median of within-sample warm-many p99 values is 1.90 seconds versus 2.95 seconds. Every sample
141
+ is retained in the full report; these tails deserve longer workload-specific measurements.
142
+
143
+ The relevant emitted runtime JavaScript is unchanged between these releases; only the unused SQLite
144
+ adapter and version constant differ. These observed timing differences do not isolate a
145
+ release-caused MySQL improvement or regression.
146
+
147
+ ## Additional isolated 1.0.5 workloads
148
+
149
+ The [November 8 isolated baseline](../benchmarks/results/v1.0.5-isolated-2026-11-08/README.md)
150
+ retains all 57,600 latencies from counter/cart matrices, state-size and idle workloads. Its source
151
+ is released 1.0.5 with the recorded newer measurement harness overlaid. Cart verification checks
152
+ quantities, totals and pending effect payloads outside timed intervals.
153
+
154
+ That run used another c-8 instance and a different sampling plan. Its absolute rates do not form a
155
+ release comparison with the November 9 experiment. A droplet size alone does not identify physical
156
+ CPU or storage performance. Keep each workload's source, harness and environment attached.
157
+
158
+ ## Historical datasets
159
+
160
+ The [historical appendix](benchmarks-history.md) preserves the busy M2 Ultra 1.0.5 run and the
161
+ August developer-laptop measurements. Those environments differ from each other and from the
162
+ isolated baselines. Their throughput ratios do not establish release regressions or speedups.
191
163
 
192
164
  ## Large state
193
165
 
194
- The large-state harness measures how the committed state size changes throughput. It runs one actor
195
- and one `increment()` operation with sequential turns, so each row isolates the per-turn
196
- serialization and row write:
166
+ The [isolated 1.0.5 state-size results](../benchmarks/results/v1.0.5-isolated-2026-11-08/README.md#sqlite-large-state)
167
+ measure whole-image persistence at four payload sizes. The
168
+ [August 0.14.3/0.14.4 comparison](benchmarks-history.md#large-state) records the earlier serialization
169
+ optimization. Each curve belongs to its measured release and host. The controlled counter comparison
170
+ uses small state; use a matching state-size workload for an application with larger actor images.
197
171
 
198
- ```bash
199
- pnpm run benchmark:large-state
200
- ```
201
-
202
- Use `--sizes`, `--operations`, and `--warmup` to change the recorded dataset.
203
-
204
- Measured on August 29, 2026 on an Apple M5, macOS 26.6, Node.js 24.18.0, and SQLite 3.53.1 through
205
- `node:sqlite` on a temporary file. Each row is the median of three runs of 300 measured operations.
206
- The before column used the `0.14.3` tree; the after column used the `0.14.4` tree, which removes the
207
- redundant per-turn state serialization.
172
+ ## Idle polling
208
173
 
209
- | Persisted state | Before ms/op | Before ops/s | After ms/op | After ops/s | Gain |
210
- | --------------: | -----------: | -----------: | ----------: | ----------: | ---: |
211
- | 0 KB | 1.85 | 540 | 1.60 | 625 | 1.2x |
212
- | 16 KB | 2.12 | 472 | 1.64 | 611 | 1.3x |
213
- | 128 KB | 4.01 | 250 | 2.53 | 395 | 1.6x |
214
- | 1 MB | 19.11 | 52 | 9.32 | 107 | 2.1x |
174
+ The [isolated 1.0.5 idle CPU results](../benchmarks/results/v1.0.5-isolated-2026-11-08/README.md#sqlite-idle)
175
+ measure empty polling work. Historical 0.13.0/0.13.1
176
+ [wake-up latency measurements](benchmarks-history.md#idle-polling) record a separate experiment.
177
+ Neither is a wake-up latency measurement for 1.0.6.
215
178
 
216
- The before tree traversed the whole state eight times for each committed operation, and nine times
217
- for a query. The after tree traverses it four times: one image for rollback and comparison, one
218
- committed image, and one read for each of the two observables guards. The remaining cost at 1 MB is
219
- the database write of a large row, which the whole-image commit model cannot avoid.
179
+ ## Virtualization cost
220
180
 
221
- The curve, not the ratio, is the operating instruction. Throughput falls by about 6x between 0 KB
222
- and 1 MB even after the change. Keep one actor's state small. See
223
- [State size and throughput](state-and-lifecycle.md#state-size-and-throughput).
181
+ The [August Docker Desktop experiment](benchmarks-history.md#virtualization-cost) records that
182
+ machine's container boundary. The isolated cloud runs use Linux containers for PostgreSQL and MySQL
183
+ on the same VM as the Node client and workers, with bind-mounted data and host networking. Keep each
184
+ topology attached to its results.
224
185
 
225
186
  ## Scenarios
226
187
 
@@ -232,7 +193,8 @@ and 1 MB even after the change. Keep one actor's state small. See
232
193
  - `one-process`: four actor workers run in the caller's Node process.
233
194
  - `four-processes`: four Node worker processes share the database.
234
195
 
235
- Latency begins before durable enqueue and ends when the committed result is available. Throughput
196
+ The client durably sends each operation and polls for its committed result. Timing includes both
197
+ enqueue and result polling. Latency begins before durable enqueue and ends when the committed result is available. Throughput
236
198
  uses the wall time for the measured batch. Percentiles use nearest rank. Defaults are 25 warmup
237
199
  operations, 250 measured operations, and client concurrency 16.
238
200
 
@@ -256,106 +218,28 @@ SOLID_OBJECTS_MYSQL_BENCHMARK_URL=mysql://... \
256
218
  ```
257
219
 
258
220
  Use `--operations`, `--warmup`, `--concurrency`, and `--repetitions` to change the recorded dataset.
259
- The matrix defaults to three repetitions. Select `--workload counter` or `--workload cart-outbox`.
221
+ The standalone matrix defaults to three repetitions. Select `--workload counter` or `--workload cart-outbox`.
222
+ `--topologies`, `--shapes` and `--handlers` select focused scenarios. Controlled comparisons use
223
+ fresh processes for their outer rounds and retain a separate `comparison.json`; the full-matrix
224
+ summarizer continues to require every matrix scenario.
260
225
  Redirect stdout to retain the JSON result; progress and runtime diagnostics go to stderr.
261
226
 
262
- ## Observed results
263
-
264
- Measured on August 22, 2026 with the `0.14.0` source tree:
265
-
266
- - Apple M5 (Mac17,2), 10 logical CPUs
267
- - macOS 26.6
268
- - Node.js 24.18.0
269
- - SQLite 3.53.1 through `node:sqlite` on the internal SSD
270
- - PostgreSQL 17.11 and MySQL 9.7.1, both installed natively and started on a scoped temporary data
271
- directory
272
- - 25 warmup operations, 250 measured operations, concurrency 16
273
-
274
- ### SQLite 3.53.1
275
-
276
- | Topology | Shape | Handler | ops/s | p50 ms | p95 ms | p99 ms |
277
- | -------------- | --------- | ------------ | -----: | -----: | -----: | -----: |
278
- | one process | warm hot | synchronous | 286.09 | 50.09 | 135.15 | 176.55 |
279
- | one process | warm hot | asynchronous | 322.53 | 48.66 | 70.59 | 75.87 |
280
- | one process | warm many | synchronous | 119.05 | 132.25 | 237.52 | 247.05 |
281
- | one process | warm many | asynchronous | 288.26 | 32.64 | 70.33 | 562.42 |
282
- | one process | cold many | synchronous | 47.67 | 326.04 | 435.46 | 507.03 |
283
- | one process | cold many | asynchronous | 99.39 | 148 | 236.03 | 295.26 |
284
- | four processes | warm hot | synchronous | 518.66 | 30.15 | 52.73 | 78.57 |
285
- | four processes | warm hot | asynchronous | 506.8 | 26.39 | 92.26 | 102.18 |
286
- | four processes | warm many | synchronous | 190.36 | 76.65 | 145.7 | 158.94 |
287
- | four processes | warm many | asynchronous | 77.12 | 194.6 | 399.43 | 527.1 |
288
- | four processes | cold many | synchronous | 54.74 | 273.33 | 646.68 | 650.09 |
289
- | four processes | cold many | asynchronous | 93.85 | 145.27 | 333.78 | 426.6 |
290
-
291
- ### PostgreSQL 17.11
292
-
293
- | Topology | Shape | Handler | ops/s | p50 ms | p95 ms | p99 ms |
294
- | -------------- | --------- | ------------ | -----: | -----: | -----: | ------: |
295
- | one process | warm hot | synchronous | 206.31 | 69.33 | 132.69 | 153.03 |
296
- | one process | warm hot | asynchronous | 212.07 | 72.38 | 96.75 | 106.12 |
297
- | one process | warm many | synchronous | 191.4 | 55.71 | 147.99 | 722.6 |
298
- | one process | warm many | asynchronous | 66.6 | 121.61 | 920.97 | 2441.28 |
299
- | one process | cold many | synchronous | 31.38 | 500.73 | 705.15 | 722.54 |
300
- | one process | cold many | asynchronous | 17.24 | 909.02 | 1192.9 | 1211.35 |
301
- | four processes | warm hot | synchronous | 265.63 | 57.94 | 82.52 | 109.46 |
302
- | four processes | warm hot | asynchronous | 330.94 | 46.81 | 63.76 | 70.25 |
303
- | four processes | warm many | synchronous | 161.73 | 58.67 | 237.04 | 718.55 |
304
- | four processes | warm many | asynchronous | 119.63 | 68.71 | 531.12 | 1372.5 |
305
- | four processes | cold many | synchronous | 50.84 | 314.51 | 487.09 | 506.45 |
306
- | four processes | cold many | asynchronous | 29.93 | 546.7 | 615.36 | 638.1 |
307
-
308
- ### MySQL 9.7.1
309
-
310
- | Topology | Shape | Handler | ops/s | p50 ms | p95 ms | p99 ms |
311
- | -------------- | --------- | ------------ | -----: | ------: | ------: | ------: |
312
- | one process | warm hot | synchronous | 79.59 | 208.66 | 222.86 | 225.19 |
313
- | one process | warm hot | asynchronous | 79.98 | 206.78 | 232.74 | 237.94 |
314
- | one process | warm many | synchronous | 79.7 | 129.25 | 395.52 | 1987.46 |
315
- | one process | warm many | asynchronous | 28.06 | 338.85 | 1992.54 | 6004.98 |
316
- | one process | cold many | synchronous | 13.78 | 1215.91 | 1445.61 | 1470.91 |
317
- | one process | cold many | asynchronous | 11.63 | 1347.74 | 1733.01 | 1820.26 |
318
- | four processes | warm hot | synchronous | 213.75 | 72.85 | 94.48 | 106.73 |
319
- | four processes | warm hot | asynchronous | 228.32 | 70.45 | 84.96 | 90.39 |
320
- | four processes | warm many | synchronous | 105.31 | 90.36 | 297.88 | 1064.14 |
321
- | four processes | warm many | asynchronous | 80.03 | 149.92 | 324.98 | 1090.95 |
322
- | four processes | cold many | synchronous | 51.82 | 306.1 | 407.22 | 424.45 |
323
- | four processes | cold many | asynchronous | 27.35 | 554.03 | 807.18 | 868.48 |
324
-
325
- The cold and asynchronous cases keep the poorest throughput and the longest tail. These are observed
326
- limitations. They are not capacity recommendations. Repeat the runs on application-shaped payloads
327
- before you draw a general conclusion. Integration tests cover PostgreSQL 14, MySQL 8.0, and other
328
- database versions, but this harness did not measure them.
329
-
330
- ### Virtualization cost
331
-
332
- The same server version ran natively and in Docker Desktop on the same machine, on the same day,
333
- through the same harness. Only the container boundary changes.
334
-
335
- | Database | Topology and shape | Native ops/s | Docker ops/s | Native gain |
336
- | ---------------- | ------------------------------- | -----------: | -----------: | ----------: |
337
- | PostgreSQL 17.11 | four processes, warm hot, async | 330.94 | 67.69 | 4.9x |
338
- | PostgreSQL 17.11 | one process, warm hot, sync | 206.31 | 56.44 | 3.7x |
339
- | MySQL 9.7.1 | four processes, warm hot, async | 228.32 | 60.27 | 3.8x |
340
- | MySQL 9.7.1 | one process, warm hot, sync | 79.59 | 44.56 | 1.8x |
341
-
342
- Across the full matrix, Docker Desktop cost between 1.0x and 7.8x of the native throughput. The
343
- multi-process rows lose the most, because more connections and more commits cross the container
344
- boundary. Measure a database on the deployment shape you intend to run, and state the boundary with
345
- any number you publish.
346
-
347
- Earlier releases of this document reported PostgreSQL 18.4 and MySQL 8.4.11 in Docker Desktop on the
348
- `0.13.0` tree. Those numbers measured the container as much as the database, so the tables above
349
- replace them.
350
-
351
- ## Sources of bias
352
-
353
- - A developer laptop shares CPU, memory, and storage with unrelated processes.
354
- - Loopback database connections exclude production network latency.
355
- - Filesystem cache, SQLite WAL state, Node JIT warmup, and garbage collection affect short runs.
356
- - Docker Desktop costs between 1.0x and 7.8x of the native throughput. The tables above use native
357
- servers. See [Virtualization cost](#virtualization-cost).
358
- - The payload is a small counter, not a representative application state size. See
359
- [Large state](#large-state) for the measured effect of state size.
360
- - The harness measures default durability settings and one client concurrency.
361
- - Hot-identity results deliberately include serialization and cannot be scaled by adding workers.
227
+ ## Interpreting results
228
+
229
+ - A droplet size identifies a resource allocation; its physical CPU and storage can vary between
230
+ instances. Controlled release comparisons keep all variants on one VM. For each future release,
231
+ rerun the previous release and candidate together on the new host; track their within-run ratios
232
+ and sample ranges rather than comparing old absolute rates with a new droplet.
233
+ - Loopback SQL connections measure local databases. Application network latency and external effect
234
+ delivery have their own boundaries.
235
+ - Filesystem caches, Node warmup, garbage collection, polling and scheduling affect timing. The
236
+ reports retain sample ranges and operation latencies so variability stays visible. Small
237
+ differences with overlapping sample ranges need longer follow-up measurements.
238
+ - Each 500-operation comparison sample has few observations in its extreme tail. The median of
239
+ five within-sample p99 values is a diagnostic, not an application latency SLO estimate.
240
+ - Hot identities serialize work. Additional workers increase parallelism across identities rather
241
+ than making one actor process simultaneous operations.
242
+ - Counter operations use small state. Payload size and application logic change costs; match those
243
+ workloads before using a result for capacity planning.
244
+ - SQLite journal mode and synchronization level are part of each measured configuration. WAL/NORMAL
245
+ and WAL/FULL results carry different power-loss durability semantics.
package/docs/releasing.md CHANGED
@@ -65,3 +65,30 @@ from the tag and redeploy the site. The site's `check:release` step refuses a
65
65
  snapshot that is not the latest published tag. The Context7 refresh workflow
66
66
  refreshes the index after each push to `main` that changes the documentation.
67
67
  Confirm that its run succeeded.
68
+
69
+ ## Performance evidence
70
+
71
+ A version bump does not update the measured version of an existing benchmark dataset.
72
+ Keep each baseline's original source, environment, durability settings and raw samples.
73
+ If a release has no measurements, say so explicitly. A single-version baseline or a
74
+ different machine's results cannot establish a release-to-release regression or speedup.
75
+
76
+ For a numerical performance claim, run the selected releases on the same isolated host
77
+ with the same Node version, dependency lock, harness and workload parameters. Record actual
78
+ database durability; WAL/NORMAL and WAL/FULL are separate conditions. Retain every sample
79
+ and any interrupted attempts. Archive results and verify teardown before publishing them.
80
+
81
+ Register completed results in `benchmarks/results/index.json`, retain incomplete attempts
82
+ under its diagnostics list, and regenerate guide headlines with
83
+ `pnpm run check:benchmarks --write-guide`. The normal quality checks verify version labels,
84
+ raw samples, readiness evidence, summaries and published tables. See
85
+ [Benchmarks](benchmarks.md) for the datasets and measurement boundaries.
86
+
87
+ If one backend fails after other predeclared backend plans completed, keep the parent status
88
+ failed and preserve its original full plan and all diagnostics. After export, run
89
+ `node benchmarks/summarize-completed.mjs EXPORTED_DIAGNOSTIC_DIRECTORY` to derive every fully
90
+ completed backend. Register that archive as `partial-controlled-comparison`, with its exact
91
+ `databases` scope. CI requires all planned versions, rounds and scenarios for each included
92
+ backend, rejects selective subsets, and requires the report to remain visibly labeled incomplete.
93
+ Failed or partially sampled backends receive no comparative throughput claim. A new host's
94
+ replacement measurements remain a separate dataset.