Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
cfe0117
Preserve exact dynamic symbol address words
Qard Nov 20, 2026
8cf1689
Preserve coded TypeError branding across native and realm calls
Qard Nov 20, 2026
d6b72f5
Adopt ArrayBuffer bytes and retarget backing through the owner
Qard Nov 20, 2026
4cc6c77
Reuse native codecs for Node Buffer string encodings
Qard Nov 20, 2026
e0305dc
Create branded Node Buffer views over ArrayBuffer storage
Qard Nov 20, 2026
2e86f29
Preserve record layout proofs when hoisting loop checks
Qard Nov 20, 2026
a1c1afb
Bind Node FFI scalar functions through the native loader
Qard Nov 20, 2026
ac9c26c
Implement exact raw memory and owned lending for Node FFI
Qard Nov 20, 2026
64b50ad
Merge remote-tracking branch 'origin/main' into feat/node-ffi
Qard Nov 20, 2026
1b3f6a8
Grow scalar FFI stack and lending capacity
Qard Nov 20, 2026
edcd6b0
Register Node FFI callbacks with runtime ABI signatures
Qard Nov 20, 2026
55367f1
Lend native shared mappings through Node FFI
Qard Nov 20, 2026
21dab11
Record confirmed native signals from LLDB crash handlers
Qard Nov 20, 2026
07b65db
Finalize Node FFI libraries and verify callback failure diagnostics
Qard Nov 20, 2026
4503795
Specialize literal Node FFI call signatures
Qard Nov 20, 2026
f40ca39
Run pinned Node FFI test bodies in isolated native fixtures
Qard Nov 20, 2026
4d538d4
Record pinned Node FFI benchmarks and first full suite audit
Qard Nov 20, 2026
21324f4
Narrow suite observations before checking native outcomes
Qard Nov 20, 2026
5ba2a4f
Verify the specialized Node FFI frame on SysV
Qard Nov 20, 2026
1fa3e29
Preserve escaping Node FFI addresses and weak lifetimes
Qard Nov 20, 2026
9a66b31
Cover grouped weak exports and record FFI performance budgets
Qard Nov 20, 2026
8f262bc
Record the complete pinned FFI suite inventory and outcomes
Qard Nov 20, 2026
c0442d8
Generate the scalar frame and callback host bindings from C facts
Qard Nov 20, 2026
7e964bb
Diagnose region FFI ownership and exercise shared spans on SysV
Qard Nov 20, 2026
9d2d494
Start the JIT fixture budget after memory admission
Qard Nov 21, 2026
a9fce40
Connect typed Node FFI clients to the program realm
Qard Nov 21, 2026
037c585
Cache Node FFI scalar plans and frame views
Qard Nov 21, 2026
d263713
Lend Node FFI backing with exact native address words
Qard Nov 21, 2026
cf6faaf
Lower literal numeric FFI calls to typed C entries
Qard Nov 21, 2026
c2e27cd
Record interleaved Node FFI performance evidence
Qard Nov 21, 2026
3ae4e32
Merge origin/main for the shared-block registry
Qard Nov 21, 2026
8cf9a93
Exercise pinned FFI cases with the shared-block registry
Qard Nov 21, 2026
3e93300
Isolate Node FFI benchmark overhead with typed controls
Qard Nov 21, 2026
179e4fa
Record typed FFI profiles and shared-buffer conformance
Qard Nov 21, 2026
5da296a
Measure Node FFI candidates in paired rotated rounds
Qard Nov 21, 2026
8d7184a
Constrain paired fixture manifests to native target names
Qard Nov 21, 2026
5621b6d
Reuse FFI realm contexts and classify scalar converters once
Qard Nov 21, 2026
dad98e1
Merge origin/main into feat/node-ffi
Qard Nov 21, 2026
1a6f003
Marshal Node FFI callbacks through the saved register capture
Qard Nov 21, 2026
3380e11
Publish paired Node FFI overhead and conformance evidence
Qard Nov 21, 2026
1074a14
Measure the typed FFI callable boundary in isolation
Qard Nov 21, 2026
c85a71c
Lower guarded fixed-arity Node FFI calls and native callbacks
Qard Nov 21, 2026
2b3ccfa
Record guarded Node FFI benchmark results
Qard Nov 21, 2026
8a0cd8e
Avoid spinning while waiting for the FFI timing lock
Qard Nov 21, 2026
0c52020
Restore inline scalar marshaling on the generic FFI path
Qard Nov 21, 2026
a1d277b
Select typed direct calls for validated i32 FFI signatures
Qard Nov 21, 2026
ecde92a
Fuse unary pointer lending on typed FFI leaf calls
Qard Nov 21, 2026
f2422f4
Record paired scalar and typed Node FFI comparisons
Qard Nov 21, 2026
4c54d22
Require paired call time and overhead for Node FFI parity
Qard Nov 21, 2026
23624bc
Record the complete pinned Node FFI conformance rerun
Qard Nov 21, 2026
9203db6
Record paired Node FFI transition and trampoline experiments
Qard Nov 21, 2026
b989737
Lower typed Node FFI calls through guarded native entries
Qard Nov 21, 2026
0c9dfa7
Borrow stable Buffer backing through typed Node FFI leaf calls
Qard Nov 21, 2026
45ec0b1
Preserve Node validation on typed callback guard misses
Qard Nov 21, 2026
ea5d7e9
Merge remote-tracking branch 'origin/main' into feat/node-ffi
Qard Nov 22, 2026
b09fdf3
Preserve one journal event per fixture memory wait
Qard Nov 22, 2026
fa6e65c
Narrow FFI result variants in the native compiler subset
Qard Nov 22, 2026
3e0b7bf
Preserve suspended bindings while running pinned FFI fixtures
Qard Nov 22, 2026
2693876
Narrow declarator kinds in the continuation regression
Qard Nov 22, 2026
fef6697
Check hoisted closure initialization before copying captured values
Qard Nov 22, 2026
9cb504a
Merge remote-tracking branch 'origin/main' into feat/node-ffi
Qard Nov 22, 2026
5e989d2
Record paired Node FFI results after general call integration
Qard Nov 22, 2026
8668162
Record superseded intermediate Node FFI runs
Qard Nov 22, 2026
26bba53
Measure Node FFI cost against same-shape JavaScript twins
Qard Nov 22, 2026
5c7fde4
Test primitive typeof tags directly in realm-typeof modules
Qard Nov 22, 2026
7292487
Shorten the untyped Node FFI call path
Qard Nov 22, 2026
be8d676
Record the typed projection gap for dynamic typed-array results
Qard Nov 22, 2026
0565682
Share typed Buffer and callback entries with general FFI callers
Qard Nov 22, 2026
f54abd2
Validate exact int32 FFI arguments before the general checks
Qard Nov 22, 2026
a45f40e
Add built-in twins to the Node FFI benchmark for general engines
Qard Nov 22, 2026
4598129
Record Node FFI results at a45f40e41
Qard Nov 22, 2026
5e5ff02
Inline bound record views and keep typed FFI entries direct
Qard Nov 22, 2026
54735f9
Shorten general Node FFI calls through the call step and shared entries
Qard Nov 22, 2026
8364a39
Reproduce the typed realm typed-array projection gaps precisely
Qard Nov 22, 2026
e9e58c1
Read typed FFI plans from a stable view without a closure call
Qard Nov 22, 2026
ca6306f
Check FFI binding liveness without closure calls
Qard Nov 22, 2026
f5323ca
Record Node FFI acceptance results at ca6306f2d
Qard Nov 22, 2026
519177d
Describe the general and typed Node FFI call entries
Qard Nov 22, 2026
e0309f8
Expect typed FFI entries to read the stable typed view
Qard Nov 22, 2026
c6ed1fc
Record the unified pipeline ledger at ca6306f2d
Qard Nov 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions docs/results/node-ffi-benchmark-darwin-arm64-1a6f003e6-boundary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Typed arity-zero FFI callable boundary on Darwin arm64

The probe uses the typed literal arity-zero case from the selected FFI
revision `1a6f003e6`. It installs a constant-return function body when
creating the benchmark callable. The typed call site, callable object,
realm context, and JavaScript-only control are the same as in the selected
workload. The probe skips the library and binding checks, scalar handling,
and the C call. The probe patch is local to the measurement image.
[Paired benchmark report](node-ffi-benchmark-darwin-arm64-1a6f003e6-paired.md)

Node 26.13.1, all four retained Tint workloads, and the probe ran in 18
rotated rounds under the shared timing lock. All 90 native launches
reached LLDB exit 42. Each timing used the case minus its own control in
the same round. The medians and quartiles below are ns per call.

| Workload | Overhead median [Q1, Q3] | Paired difference vs Node median [Q1, Q3] |
| ---------------------- | -----------------------: | ----------------------------------------: |
| Node | 7.29 [7.07, 7.82] | — |
| Selected typed literal | 63.26 [62.71, 64.61] | 55.76 [55.24, 57.20] |
| Constant-return probe | 50.08 [48.81, 50.72] | 42.44 [41.51, 43.14] |

The constant-return body changed overhead by -13.88 [-14.63, -12.28] ns per
call. The current callable boundary with that body remained
42.44 [41.51, 43.14] ns per call above Node. Typed arity-zero calls
through that boundary still materialize an argument list, project the
callable, enter the realm context, and read the generic result.
[`generalCall`](../../packages/ts-native/src/scalar.ts#L5135),
[`callGeneralValue`](../../packages/js-runtime/src/objects/values.ts#L214),
[`callObject`](../../packages/js-runtime/src/objects/call.ts#L11)

Each cell below shows paired overhead in ns per call, CPU idle percentage,
and one-minute load after the launch. Every round contributed to the
quartiles.

| Round | Node ns / idle / load | Selected typed literal ns / idle / load | Constant-return probe ns / idle / load |
| ----: | --------------------: | --------------------------------------: | -------------------------------------: |
| 1 | 21.38 / 81.23% / 4.45 | 67.62 / 78.53% / 4.10 | 53.16 / 84.88% / 4.31 |
| 2 | 7.21 / 63.32% / 4.69 | 62.50 / 71.64% / 4.58 | 49.95 / 72.93% / 4.69 |
| 3 | 7.39 / 71.59% / 4.73 | 66.14 / 70.26% / 4.88 | 49.06 / 78.17% / 4.73 |
| 4 | 7.03 / 78.63% / 4.31 | 63.30 / 84.59% / 4.51 | 50.21 / 86.07% / 4.31 |
| 5 | 7.23 / 82.44% / 4.48 | 62.74 / 84.39% / 4.41 | 48.69 / 85.38% / 4.48 |
| 6 | 7.28 / 85.61% / 4.41 | 64.71 / 83.88% / 3.88 | 51.84 / 87.13% / 4.41 |
| 7 | 7.67 / 80.07% / 3.66 | 63.22 / 85.23% / 3.97 | 48.10 / 83.47% / 4.05 |
| 8 | 8.09 / 82.51% / 4.43 | 64.32 / 71.60% / 4.25 | 50.28 / 79.17% / 4.43 |
| 9 | 5.92 / 80.76% / 3.72 | 63.43 / 84.43% / 3.75 | 48.96 / 80.22% / 3.72 |
| 10 | 6.99 / 72.32% / 3.78 | 65.38 / 84.96% / 3.84 | 48.98 / 83.58% / 3.78 |
| 11 | 7.76 / 80.07% / 3.35 | 62.98 / 85.40% / 3.43 | 50.79 / 84.47% / 3.35 |
| 12 | 6.88 / 80.69% / 3.43 | 62.77 / 84.45% / 3.44 | 48.09 / 85.26% / 3.43 |
| 13 | 7.19 / 79.92% / 3.48 | 62.10 / 85.10% / 3.69 | 50.46 / 82.83% / 3.47 |
| 14 | 6.86 / 80.83% / 3.68 | 62.49 / 79.87% / 3.32 | 48.76 / 79.94% / 3.68 |
| 15 | 7.30 / 79.47% / 3.80 | 63.81 / 84.57% / 3.95 | 48.66 / 85.50% / 3.80 |
| 16 | 9.64 / 32.54% / 12.23 | 98.12 / 56.79% / 4.79 | 88.75 / 9.15% / 12.23 |
| 17 | 11.68 / 0.75% / 10.53 | 62.70 / 85.14% / 11.13 | 57.39 / 64.30% / 10.53 |
| 18 | 7.83 / 80.60% / 10.64 | 62.53 / 85.46% / 8.87 | 50.52 / 85.23% / 10.64 |

The raw run has SHA-256 `a24ea13999af74881d54c7f06fdee782a5764dd93e5b7840b48af482e778f2d1`.
The probe patch has normalized SHA-256 `db7371f76e7bb1e2d34849d1559b0f6ffe2b2a2fe0bddcbe60a2f3c960b085d3`.
Loading
Loading