stagent-bench

command
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command stagent-bench is the load benchmark for stagent (not shipped).

It creates an isolated installation (STAGENT_HOME in a temp dir), starts `stagent bridge` as the app would, spawns N detached sessions that each replay a TUI-like output stream (`stagent-bench replay`, a hidden helper mode of this binary), attaches to K of them in raw and in screen mode, and measures what the design targets in docs/agent-bridge-plan.md: daemon/holder memory (PSS) and CPU (Linux /proc), idle CPU, bytes sent to the app, attach-to-first-frame latency, output-to-client latency (timestamps are embedded in the stream) and conversations.list over 1,000 transcripts. With -usage-mb it also writes that many MiB of Claude transcripts and measures the daemon's first usage scan and usage.get over them.

go run ./cmd/stagent-bench -n 50 -k 1 -speed 10
go run ./cmd/stagent-bench -n 1 -k 0 -usage-mb 1024

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL