loadgen

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Command loadgen sends a steady-rate stream of /v1/messages requests at a Relay endpoint. Designed for stressing the eventlog/CH path: defaults target the loadtest route configured against the fakeanthropic upstream.

Usage:

go run ./bench/loadgen --rps 50 --duration 2m

Flags:

--target    base URL of the relay (default http://localhost:5100)
--api-key   client API key (default test-key)
--model     model name to send in body (default loadtest-model)
--rps       requests/sec (default 50)
--duration  total run length (default 2m)
--timeout   per-request timeout (default 30s — long enough for 20s upstream)

Jump to

Keyboard shortcuts

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