solid-objects 1.0.7 → 1.2.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.
- package/CHANGELOG.md +52 -0
- package/README.md +4 -1
- package/dist/actor.d.ts +2 -2
- package/dist/actor.d.ts.map +1 -1
- package/dist/actor.js +10 -4
- package/dist/actor.js.map +1 -1
- package/dist/cloudflare/engine.d.ts +1 -0
- package/dist/cloudflare/engine.d.ts.map +1 -1
- package/dist/cloudflare/engine.js +38 -9
- package/dist/cloudflare/engine.js.map +1 -1
- package/dist/cloudflare/records.d.ts +5 -1
- package/dist/cloudflare/records.d.ts.map +1 -1
- package/dist/cloudflare/records.js +8 -1
- package/dist/cloudflare/records.js.map +1 -1
- package/dist/cloudflare/runtime.d.ts +1 -1
- package/dist/cloudflare/runtime.d.ts.map +1 -1
- package/dist/cloudflare/runtime.js +4 -1
- package/dist/cloudflare/runtime.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/outcome.d.ts +1 -0
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +5 -1
- package/dist/outcome.js.map +1 -1
- package/dist/reconciliation.d.ts +26 -1
- package/dist/reconciliation.d.ts.map +1 -1
- package/dist/reconciliation.js +6 -0
- package/dist/reconciliation.js.map +1 -1
- package/dist/records.d.ts +2 -1
- package/dist/records.d.ts.map +1 -1
- package/dist/reminder-administration.d.ts +1 -1
- package/dist/reminder-administration.d.ts.map +1 -1
- package/dist/repository.d.ts +27 -0
- package/dist/repository.d.ts.map +1 -1
- package/dist/repository.js +66 -18
- package/dist/repository.js.map +1 -1
- package/dist/runtime.d.ts +4 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +94 -9
- package/dist/runtime.js.map +1 -1
- package/dist/schema.d.ts +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +132 -2
- package/dist/schema.js.map +1 -1
- package/dist/types.d.ts +4 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/agents.md +10 -0
- package/docs/api.md +133 -8
- package/docs/authorization.md +5 -0
- package/docs/benchmarks-history.md +326 -0
- package/docs/benchmarks.md +197 -313
- package/docs/operations.md +7 -1
- package/docs/parity.md +4 -2
- package/docs/releasing.md +27 -0
- package/package.json +4 -3
package/docs/benchmarks.md
CHANGED
|
@@ -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
|
-
##
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
SQLite
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
|
71
|
-
| ----------: |
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
The
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
|
|
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
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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/operations.md
CHANGED
|
@@ -137,9 +137,15 @@ authorized, read-only views for:
|
|
|
137
137
|
- active instances;
|
|
138
138
|
- quiet instances with no ready work, claimed work, or scheduled reminder;
|
|
139
139
|
- migrated state batches;
|
|
140
|
+
- stored state versions, revisions, and paused status, without migration
|
|
141
|
+
(`instancesFor()`);
|
|
142
|
+
- message outcomes by message ID (`outcomesFor()`);
|
|
140
143
|
- orphaned actor IDs.
|
|
141
144
|
|
|
142
|
-
Collection reads use a maximum page size of 1,000 and a stable cursor.
|
|
145
|
+
Collection reads use a maximum page size of 1,000 and a stable cursor. Batch
|
|
146
|
+
reads take at most 1,000 IDs and leave out IDs without a row. Call
|
|
147
|
+
`outcomesFor()` outside your own database transaction or connection callback;
|
|
148
|
+
see [Reconciliation batch reads](api.md#reconciliation-batch-reads).
|
|
143
149
|
|
|
144
150
|
The host application supplies its current owner IDs to `orphaned()` because
|
|
145
151
|
Node applications do not share an Active Record relation abstraction. Send
|