You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mesh: peer identity and RPC latency on mesh:* events #97
Report which peer an event concerns and how long each RPC took, through the existing EventPayload fields. A new payload field would change a stable type and is not allowed.
Feeds the metrics plugin and the mesh status page.
Scope: @experimental exports, MeshConfig, mesh:* events and the /__mesh__ prefix only (D19).
Where: jarvis, docker run --cpuset-cpus 6,7,14,15 --user 1000:1000 node:22 (sha256:7c400d78…), Deno 2.9.8 and Bun 1.4.4 in the same image. Harness bench/compare.ts with the new mesh rpc (1 remote step) case; 100 connections.
Request path: every case within noise on all three runtimes. The week did not touch it.
Mesh RPC, whole week: Node −4.3%, Deno −6.3%, Bun −2.7% (separated; Node A/A −1.2%). Fixed in perf(mesh): win back the mesh RPC throughput #97 cost #116; after it, vs the same base: Node +0.6%, Deno −1.4%, Bun −0.6% (all overlapping).
Activity
Merge pull request #116 from Expressive-Tea/perf/mesh-rpc-overhead
chrnx-dev commentedon Nov 30, 2026
Regression benchmark (2026-11-30)
docker run --cpuset-cpus 6,7,14,15 --user 1000:1000 node:22(sha256:7c400d78…), Deno 2.9.8 and Bun 1.4.4 in the same image. Harnessbench/compare.tswith the newmesh rpc (1 remote step)case; 100 connections.46e0bc9(develop before the week) vs20f5094(after feat(mesh): connect teapots in parallel at boot #112–feat(mesh): cap concurrent RPCs per peer on the teapot #115). Full suite Node 3 × 10 s, Deno and Bun 3 × 5 s; then a bisect per merge, mesh only, Node 5 × 10 s.src/mesh/link.ts: a closure plusperformance.now()per RPC to build the event payload, even with no listener. Fixed in perf(mesh): win back the mesh RPC throughput #97 cost #116: plain fields on the pending entry, and timing only when something listens tomesh:rpc/mesh:rpc:error. Events and fields unchanged. Not measured: RPC with amesh:rpclistener attached (the metrics case pays one timing pair and one payload per call, by design).Full method, tables and bisect: https://github.com/Expressive-Tea/green-tea/blob/develop/bench/results/mesh-week1-46e0bc9-20f5094/README.md