Documentation
¶
Overview ¶
loadgen is runkite's internal load generator, for backend-comparison runs and any future "did this change regress latency/memory" check. Deliberately not a general-purpose load testing tool (that's what Locust is for -- see bench/locust/ for resource-constrained scenarios) -- this is small, Go-native (no separate runtime/dependency to install), and specific to runkite's own create-thread-and-run-and-wait cycle. Also works against other LangGraph SDK-compatible servers (see -wait-path) for quick ad-hoc comparisons outside Locust.
Usage:
go run ./bench/loadgen -url http://localhost:2026 -agent-id echo_agent -concurrency 150 -duration 30s go run ./bench/loadgen -url http://localhost:2026 -agent-id echo_agent -concurrency 150 -duration 30s -pid 12345
With -pid set, samples the given process's RSS every second for the run's duration and reports min/max/delta alongside latency -- the same "does memory plateau or grow unbounded" signal used in this project's manual smoke-test verification, just automated and reusable instead of a one-off /tmp script.