Documentation
¶
Overview ¶
Command rss measures B2: peak RSS after listing 100 notebooks in RPC mode.
go run ./bench/rss [-bin bin/sourcebolt.exe]
Method. The real binary cannot be pointed at a fake upstream: it speaks HTTPS and trusts only the system roots, and trusting a test CA would mean changing machine trust settings. So the 100-notebook measurement runs the production stack (rpc transport, nlm client, cache, MCP server) inside this process against a local TLS HTTP/2 fake that serves the live wXbhsf fixture structure expanded to 100 notebooks. The process also holds the MCP client and the fake server, so the figure over-states the real server.
With -bin, the spawned binary is also measured idle (after initialize and tools/list, no upstream), which is the floor the in-process number sits on.
Linux reads VmHWM from /proc/<pid>/status; Windows calls psapi GetProcessMemoryInfo (PeakWorkingSetSize). macOS is skipped.