Skip to content

Upgrade Effect to rc.112 - #174

Merged
SandroMaglione merged 1 commit into
mainfrom
codex/update-effect-rc-112
Aug 26, 2026
Merged

Upgrade Effect to rc.112#174
SandroMaglione merged 1 commit into
mainfrom
codex/update-effect-rc-112

Conversation

@SandroMaglione

@SandroMaglione SandroMaglione commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

  • upgrade the exact Effect peer dependency from 4.0.0-rc.111 to 4.0.0-rc.112
  • keep @effect/vitest, browser, and Node platform packages on the matching rc
  • update installation guidance and the workspace lockfile

Changeset

  • Added or updated for a library or package-metadata change
  • Not required because this PR does not change a publishable package

Validation

  • pnpm check
  • Automated type-performance measurement passed or was not required
  • Automated runtime- and memory-performance measurement passed or was not required

Local smoke tests also passed with pnpm perf:types and pnpm perf:runtime; the automated base-versus-PR comparisons remain authoritative.

@github-actions

Copy link
Copy Markdown
Contributor

Type performance

Measured with TypeScript 6.0.3 and skipLibCheck=true.

Scenario Base PR Difference
Effect only 55 55 0 (0.0%)
Import effect-machine 55 55 0 (0.0%)
Machine.states (3 states) 3,039 3,039 0 (0.0%)
Machine.make (3 states, 2 events) 10,787 10,787 0 (0.0%)
machine.handle (3 states, 2 transitions) 28,551 28,551 0 (0.0%)
fluent transition (10 named branches) 122,775 122,775 0 (0.0%)
fluent invocation (state-dependent Effect) 108,429 108,429 0 (0.0%)
machine.handle (depth 24) 207,970 207,970 0 (0.0%)
machine.handle (wide depth 16) 236,332 236,332 0 (0.0%)
machine.handle (parallel/history/choice) 144,812 144,812 0 (0.0%)
machine definition (3 independent implementations) 143,617 143,617 0 (0.0%)
machine exact input/output/error/services 129,873 129,873 0 (0.0%)
execution adapter readiness 136,469 136,469 0 (0.0%)

Marginal instantiations are measured against the matching setup without that API call:

Scenario Base PR Difference
Import effect-machine 0 0 0
Machine.states (3 states) 2,984 2,984 0 (0.0%)
Machine.make (3 states, 2 events) 7,740 7,740 0 (0.0%)
machine.handle (3 states, 2 transitions) 17,764 17,764 0 (0.0%)
fluent transition (10 named branches) 112,498 112,498 0 (0.0%)
fluent invocation (state-dependent Effect) 99,018 99,018 0 (0.0%)
machine.handle (depth 24) 187,474 187,474 0 (0.0%)
machine.handle (wide depth 16) 217,043 217,043 0 (0.0%)
machine.handle (parallel/history/choice) 124,167 124,167 0 (0.0%)
machine definition (3 independent implementations) 127,576 127,576 0 (0.0%)
machine exact input/output/error/services 115,217 115,217 0 (0.0%)
execution adapter readiness 106,299 106,299 0 (0.0%)
Check times (informational)
Scenario Base PR
Effect only 0.03s 0.03s
Import effect-machine 0.03s 0.03s
Machine.states (3 states) 0.10s 0.10s
Machine.make (3 states, 2 events) 0.16s 0.16s
machine.handle (3 states, 2 transitions) 0.25s 0.27s
fluent transition (10 named branches) 0.57s 0.62s
fluent invocation (state-dependent Effect) 0.58s 0.55s
machine.handle (depth 24) 0.84s 0.81s
machine.handle (wide depth 16) 0.84s 0.85s
machine.handle (parallel/history/choice) 0.70s 0.65s
machine definition (3 independent implementations) 0.69s 0.70s
machine exact input/output/error/services 0.60s 0.64s
execution adapter readiness 0.66s 0.66s

Type instantiations are the comparison metric. Check time varies with runner load and is informational only.

@github-actions

Copy link
Copy Markdown
Contributor

Runtime performance

Median of 5 independent benchmark processes on AMD EPYC 9V45 96-Core Processor with Node v24.19.0.

Pull request baseline

Scenario Effect Machine
Plan counter transitions 208,610 transitions/s
Drain burst with terminal fence 717,657 increments/s
Drain burst with a change observer 664,793 increments/s
Lookup and send to one child 620,028 increments/s
Start and stop a machine 248,385 machines/s
Start and stop a parent with one child 74,627 families/s
Plan transitions through a compound state 183,942 transitions/s
Plan transitions through parallel regions 153,737 transitions/s
Drain burst through a compound state 556,448 events/s
Drain burst through two parallel regions 562,568 events/s
Drain a compound-state burst with a change observer 529,973 events/s

Process runtime reference points

Scenario Effect Machine
Start and stop a raw generic process 51,073 processes/s
Start and stop a raw compiled process 115,701 processes/s
Memory profile Effect Machine
Idle machine 1.7 KiB
Raw generic managed process 13.9 KiB
Raw compiled process 3.2 KiB
Two independent idle machines 3.3 KiB
Idle parent with one child 5.7 KiB
Parent with observed child registry 9.8 KiB
Parent with observed invoked child snapshots 6.3 KiB

Effect Machine change from base

Metric Base Base variability PR PR variability Difference
Plan counter transitions 184,091 transitions/s 3.0% MAD 208,610 transitions/s 0.9% MAD +13.3%
Drain burst with terminal fence 578,340 increments/s 4.3% MAD 717,657 increments/s 1.3% MAD +24.1%
Drain burst with a change observer 559,428 increments/s 2.3% MAD 664,793 increments/s 2.7% MAD +18.8%
Lookup and send to one child 520,698 increments/s 4.4% MAD 620,028 increments/s 2.9% MAD +19.1%
Start and stop a machine 230,627 machines/s 1.9% MAD 248,385 machines/s 0.2% MAD +7.7%
Start and stop a parent with one child 73,094 families/s 2.5% MAD 74,627 families/s 1.7% MAD +2.1%
Plan transitions through a compound state 165,488 transitions/s 1.2% MAD 183,942 transitions/s 1.7% MAD +11.2%
Plan transitions through parallel regions 135,840 transitions/s 1.3% MAD 153,737 transitions/s 1.4% MAD +13.2%
Drain burst through a compound state 484,882 events/s 0.4% MAD 556,448 events/s 1.1% MAD +14.8%
Drain burst through two parallel regions 482,951 events/s 3.2% MAD 562,568 events/s 0.2% MAD +16.5%
Drain a compound-state burst with a change observer 462,059 events/s 0.0% MAD 529,973 events/s 0.5% MAD +14.7%
Idle machine heap per unit 1.8 KiB 0.2% MAD 1.7 KiB 0.1% MAD -1.3%
Raw generic managed process heap per unit 13.9 KiB 0.0% MAD 13.9 KiB 0.0% MAD +0.0%
Raw compiled process heap per unit 3.2 KiB 0.1% MAD 3.2 KiB 0.4% MAD +1.0%
Two independent idle machines heap per unit 3.4 KiB 0.0% MAD 3.3 KiB 0.0% MAD -1.1%
Idle parent with one child heap per unit 5.8 KiB 0.0% MAD 5.7 KiB 0.0% MAD -0.5%
Parent with observed child registry heap per unit 10.0 KiB 0.0% MAD 9.8 KiB 0.0% MAD -2.0%
Parent with observed invoked child snapshots heap per unit 6.3 KiB 0.0% MAD 6.3 KiB 0.0% MAD -0.5%

Process runtime reference change from base

Metric Base Base variability PR PR variability Difference
Start and stop a raw generic process 51,154 processes/s 2.1% MAD 51,073 processes/s 2.3% MAD -0.2%
Start and stop a raw compiled process 117,606 processes/s 1.7% MAD 115,701 processes/s 1.0% MAD -1.6%

Regression guard

No large, noise-adjusted throughput or heap regressions detected.

Versions and interpretation
  • Effect Machine: 0.25.0

Higher throughput is better; lower heap is better. Variability is the median absolute deviation across independent processes, relative to their median. Small differences on shared GitHub-hosted hardware remain informational; the required guard rejects only large changes beyond the measured noise allowance.

@SandroMaglione
SandroMaglione merged commit 806d2fd into main Aug 26, 2026
8 checks passed
@SandroMaglione
SandroMaglione deleted the codex/update-effect-rc-112 branch August 26, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant