tools

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Load Test Dashboard

This replaces the one-off conversion workflow with a small local web app.

For the end-to-end load-test workflow, named test cases, and queue benchmark usage, see:

  • tests/loadtest/README.md

Start the dashboard

python3 tests/loadtest/tools/dashboard.py

That starts a local server, opens the dashboard in your browser, and scans tests/loadtest/ for:

  • k6 summary.json files
  • raw k6 NDJSON exports
  • CSV files produced by the old minute-bucket flow

Optional flags

python3 tests/loadtest/tools/dashboard.py --no-open
python3 tests/loadtest/tools/dashboard.py --port 9000
python3 tests/loadtest/tools/dashboard.py --root tests/loadtest

Queue drain benchmark

For temporary queue-drain benchmarking, generate a k6-shaped summary JSON from Asynq queue stats:

go run ./tests/loadtest/tools/queue_benchmark.go \
  -queue-prefix new:transaction_ \
  -wait \
  -out tests/loadtest/queue-summary.json

Or target one specific queue:

go run ./tests/loadtest/tools/queue_benchmark.go \
  -queues new:transaction_18 \
  -out tests/loadtest/queue-summary.json

If you are not loading the full app config, pass Redis directly:

go run ./tests/loadtest/tools/queue_benchmark.go \
  -redis-dsn "$LEDGERFORGE_REDIS_DNS" \
  -queue-prefix new:transaction_ \
  -wait \
  -out tests/loadtest/queue-summary.json

Useful flags:

  • -config <path>: load LedgerForge config from a specific file before reading env vars
  • -interval 1s: polling cadence
  • -timeout 15m: maximum drain benchmark duration
  • -wait: wait for backlog to appear before starting measurement

What the UI supports

  • Discovered load-test runs from disk
  • Drag-and-drop upload of JSON, NDJSON, or CSV load-test files
  • KPI cards for throughput, latency, success, Apdex, duration, and VUs
  • Threshold and check summaries
  • Simple trend charts when minute-level data exists

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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