loadgen

command
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 15 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

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.

Jump to

Keyboard shortcuts

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