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
Click to show internal directories.
Click to hide internal directories.