bench

command
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

The bench command drives the dwarf engine through its public API against a real database and measures step/flow/MB throughput and latency at a sweep of closed-loop concurrencies. It is the harness of the cloud benchmark campaign: a minimal proxy host (no transport framework), an RTT sampler for the database round-trip term of the sizing model, and one self-contained JSON artifact per run.

Example (local smoke, SQLite):

go run ./bench -window 10s -warmup 2s -concurrency 8,32

Example (RDS PostgreSQL):

go run ./bench -dsn 'postgres://user:pass@db.xyz.us-east-1.rds.amazonaws.com:5432/dwarf' \
  -workload linear -workers 64 -max-open-conns 30 -concurrency 8,16,32,64,128,256 \
  -window 5m -warmup 60s -label baseline

Jump to

Keyboard shortcuts

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