loadtest

command
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Command loadtest is a stdlib-only load generator for the TinyRaven events API.

It spins up N concurrent workers, each POSTing batched NDJSON to /v0/events?name=<datasource> for a fixed duration, and reports throughput (events/s) and request-latency percentiles (p50/p95/p99). It measures the ack-on-buffer path (ADR 0004): a 202 means the rows were validated and buffered for the ClickHouse flush.

Usage:

go run ./scripts/loadtest \
  -url http://localhost:8000 -token "$TR_ADMIN_TOKEN" \
  -datasource events -workers 50 -duration 30s -batch 1000

See docs/benchmark.md for methodology and the reference figures.

Jump to

Keyboard shortcuts

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