bench

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Concurrency / latency / write benchmark for api-log.

Spawns -conc workers; each fires -count requests cycling through the configured protocols. Records per-request latency and prints percentile and throughput stats; emits a JSON summary on stdout for the orchestrator to ingest.

Typical use:

bench -upstream http://localhost:7861 \
      -key sk-... -conc 50 -count 20 \
      -chat-model gpt-4o-mini \
      -anthropic-model claude-haiku-4-5 \
      -responses-model gpt-4o-mini

The bench is upstream-agnostic: point -upstream at the api-log proxy (default) to measure end-to-end including the proxy, or at the upstream directly to measure the bare baseline. Two runs with the same -seed give the same request body sequence, so before/after comparisons are apples-to-apples.

Jump to

Keyboard shortcuts

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