Module 3: Resource & Performance Tuning

Tune workers and queue concurrency with measurements.

Commands are templates. Replace IDs, secrets and endpoints with your environment values.

Hands-on Steps (Directly Runnable)

Execute each command, capture output, then note issues and fixes.

Step 1: Collect baseline

Run:
picoclaw bench run --flow flows/schedule-notify.yaml --count 200

Copyable commands
picoclaw bench run --flow flows/schedule-notify.yaml --count 200

Step 2: Tune concurrency

Run:
export PICOCLAW_WORKERS=4 PICOCLAW_QUEUE_CONCURRENCY=16

Copyable commands
export PICOCLAW_WORKERS=4 PICOCLAW_QUEUE_CONCURRENCY=16

Step 3: Re-run benchmark

Run:
picoclaw bench run --flow flows/schedule-notify.yaml --count 200

Copyable commands
picoclaw bench run --flow flows/schedule-notify.yaml --count 200

Step 4: Compare reports

Run:
picoclaw bench compare ./benchmarks/before.json ./benchmarks/after.json

Copyable commands
picoclaw bench compare ./benchmarks/before.json ./benchmarks/after.json

Track completed

Turn the commands on this page into your team runbook.

PicoClaw Module 3: Resource & Performance Tuning | BestClaw