Documentation
¶
Overview ¶
cmd/bench is a throughput benchmark for Kronos. It connects directly to Postgres, pre-inserts N jobs, then starts the scheduler + worker pool and measures time-to-completion.
Usage:
# Start Postgres first docker-compose up -d # Run benchmark (defaults: 10000 jobs, 50 workers) DATABASE_URL=postgres://kronos:kronos@localhost:5432/kronos?sslmode=disable \ go run ./cmd/bench # Override DATABASE_URL=... go run ./cmd/bench -jobs=50000 -workers=100
Click to show internal directories.
Click to hide internal directories.