Introduction
Stroppy is a database stress-testing CLI distributed as one self-contained Go binary. It ships deterministic TPC-B, TPC-C, TPC-H, and TPC-DS workloads, structured SQL support, database drivers, native metrics, and machine-baseline tools. No separate runtime is required.
What 6.2 provides
- Go-native workload engine with fixed-iteration and fixed-duration executors.
- Typed workload parameters exposed as CLI flags and JSON config fields.
- Deterministic data generation through reusable typed batches and canonical TPC-H/TPC-DS generator adapters.
- PostgreSQL, MySQL, CockroachDB, YugabyteDB, TiDB, Picodata, YDB, Noop, and CSV drivers with explicit capability discovery.
- Structured SQL files with named sections, named queries, and portable
:parameterbinding. - Native throughput, metrics, and summaries, with optional OpenTelemetry export.
- Saved reports, HTML exports, metric/log capture, and run comparison through
stroppy reports. - Custom Go workloads: scaffold, test, build, register, and export standalone binaries without rebuilding Stroppy.
stroppy baseline, which measures Stroppy's own framework and PostgreSQL wire-protocol ceilings without a database.
If you are upgrading from v5, read Migrating to v6 first.
Architecture
CLI / JSON config / process environment
│
▼
typed parameter resolution
│
▼
Go benchmark engine
setup → executor → teardown
│
┌─────────┴─────────┐
▼ ▼
registered Go workload SQL / inline SQL
│ │
└─────────┬─────────┘
▼
registered database driver
PostgreSQL / MySQL / Picodata / YDB
Noop / CSV
│
▼
summary / saved reports / OTLP metrics
Built-in workloads and their SQL/JSON/README assets are compiled into the binary. A local SQL path can override an embedded dialect file without rebuilding.
Installation
Release archives
Download v6.2.0 for Linux or macOS, amd64 or arm64, from
GitHub Releases.
Extract the archive and place stroppy on your PATH.
chmod +x stroppy
sudo install stroppy /usr/local/bin/stroppy
stroppy version
Expected shape:
stroppy v6.2.0
pgx v5.10.0
Machine-readable output:
stroppy version --json
Docker
docker pull ghcr.io/stroppy-io/stroppy:v6.2.0.66
docker run --rm ghcr.io/stroppy-io/stroppy:v6.2.0.66 version
Use --network host when the container must reach databases bound to the host:
docker run --rm --network host ghcr.io/stroppy-io/stroppy:v6.2.0.66 \
run tpcc/tx -d pg -D url=postgres://localhost:5432/bench
Build from source
Requires Go 1.27 or newer. Prebuilt binaries need no Go installation for built-in workloads:
git clone https://github.com/stroppy-io/stroppy.git
cd stroppy
git checkout v6.2.0
make build
./build/stroppy version
Discover what is available
probe reads the catalog compiled into the binary. It does not connect to a
database.
stroppy probe
stroppy probe -o json
It lists:
- registered workloads and their typed parameter schemas;
- embedded SQL dialect and documentation files;
- insert methods supported by every driver.
For one workload's full flag list:
stroppy run tpcc/tx --help
Quick start
Measure Stroppy itself
No database needed:
stroppy baseline --quick
Release binaries embed the pg-noop loopback server used by the wire tier. See Machine Baseline for interpretation and saved reports.
Run against PostgreSQL
stroppy run tpcc/tx -d pg \
-D url=postgres://host:5432/bench \
--executor constant-vus --vus 10 --duration 60s
Fixed-iteration run
stroppy run tpcb/tx -d pg \
--executor shared-iterations --vus 4 --iterations 100
Load without measuring
stroppy run tpcc/tx -d pg --scale-factor 10 --load-workers 8 \
--no-steps workload
Then measure against the existing data:
stroppy run tpcc/tx -d pg --scale-factor 10 \
--executor constant-vus --vus 64 --duration 10m \
--steps workload
Save and inspect a run
stroppy run tpcb/tx -d pg --iterations 100 --capture-metrics --capture-logs
stroppy reports list
stroppy reports serve --listen 127.0.0.1:8080
The viewer is local and read-only. Run reports explains capture, exports, log browsing, and comparison.
Run SQL directly
stroppy run queries.sql -d pg
stroppy run "select 1" -d pg
Input modes
| First positional | Meaning | Example |
|---|---|---|
| Registered workload | Run embedded Go workload | stroppy run tpch/tx |
.sql path | Execute SQL file through execute_sql | stroppy run ./queries.sql |
| String containing spaces | Execute inline SQL | stroppy run "select 1" |
A registered workload may take a second positional SQL override:
stroppy run tpcc/tx ./workloads/tpcc/pico.sql -d pico
SQL resolution order:
- current working directory;
~/.stroppy/;- assets embedded in the binary.
Explicit local .sql paths are resolved from the working directory first, so
SQL edits take effect immediately. Short embedded names use the snapshot built
into the binary.
Configuration sources
Typed parameter precedence, highest first:
- direct typed CLI flag;
- process environment;
- matching typed JSON object (
runorparams); - workload default.
-e and config env were removed in 6.2. Driver maps use names such as
default and primary, not numeric indexes. See the 6.1-to-6.2 migration.
Driver precedence is -d/-D over config-file drivers.
Use direct flags for new commands:
stroppy run tpcc/tx --scale-factor 10 --load-workers 8 \
--executor constant-vus --vus 32 --duration 5m
Use Configuration Files for repeatable runs.