Skip to content
Agent Orchestration
Command

/bench

Run performance benchmarks for RLM-Claude-Code.

BOOST
From plugin
rlm-claude-code
1068 skills1 agent8 commands6 hooks
Install
> /plugin marketplace add rand/rlm-claude-code
> /plugin install rlm-claude-code@rlm-claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/bench

Context preview

What this command does when you run it.

Run performance benchmarks for RLM-Claude-Code.

Command definition

bench.md

Run performance benchmarks for RLM-Claude-Code.

Commands

# All benchmarks
uv run pytest tests/benchmarks/ --benchmark-only

# With comparison to baseline
uv run pytest tests/benchmarks/ --benchmark-only --benchmark-compare

# Save results
uv run pytest tests/benchmarks/ --benchmark-only --benchmark-json=results.json

# Specific benchmark
uv run pytest tests/benchmarks/test_performance.py::test_complexity_classifier_latency --benchmark-only

Performance Targets

| Component | Target | Measurement | |-----------|--------|-------------| | Complexity classifier | <50ms | `test_complexity_classifier_latency` | | REPL execution | <100ms | `test_repl_execution_latency` | | Trajectory render | <10ms/event | `test_trajectory_render_latency` | | Context externalization | <500ms | `test_context_externalization` |

Profiling

# CPU profiling
python -m cProfile -s cumulative -m src.orchestrator --query "test" 2>&1 | head -50

# Memory profiling
python -m memory_profiler src/orchestrator.py

# Line profiling
kernprof -l -v src/complexity_classifier.py

Cost Tracking

Track token usage:

uv run python -m src.tools.cost_tracker --trajectory /path/to/trajectory.json

Expected costs:

  • Simple query through RLM: ~$0.10-0.20
  • Complex multi-file task: ~$0.30-0.50
  • Deep verification (depth=2): ~$0.50-1.00
Ships withrlm-claude-code

Transform Claude Code into a Recursive Language Model (RLM) agent with intelligent orchestration, unbounded context handling, persistent memory, and REPL-based decomposition.

Get the whole plugin

Other commands on rlm-claude-code.