bench

command
v0.0.0-...-eaf5e47 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 20 Imported by: 0

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

Jump to

Keyboard shortcuts

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