Install any skill in seconds. Free to start, no credit card required.
Get Started Free →rtk-ai/performance-optimization-skill
CLI performance optimization - startup time, memory usage, token savings benchmarking
Passed 19 of 22 test cases with the skill, and 13 of 22 without it.
and 7 more in the full report
7 fixed13 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
A newer attempt on gemini-3.8-flash on 10/18/2026 did not produce a publishable comparison (not comparable). The snapshot above is the previously measured run.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
What is the standard target for resident set memory usage for RTK CLI commands, and at what maximum memory limit does a build become blocked from release?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies a target resident set size of under 5MB. | Missed | Passed |
| Specifies a memory usage blocker threshold of greater than 7MB. | Passed | Passed |
The instructions your model reads when the skill loads.
Systematic performance analysis and optimization for RTK CLI tool, focusing on startup time (<10ms), memory usage (<5MB), and token savings (≥20% floor).
| Metric | Target | Verification Method | Failure Threshold |
|---|---|---|---|
| Startup time | <10ms | hyperfine 'rtk <cmd>' | >15ms = blocker |
| Memory usage | <5MB resident | /usr/bin/time -l rtk <cmd> (macOS) | >7MB = blocker |
| Token savings | ≥20% floor | Tests with count_tokens() | <20% = blocker |
| Binary size | <5MB stripped | ls -lh target/release/rtk | >8MB = investigate |
Before making any changes, capture current performance:
# Startup time baseline
hyperfine 'rtk git status' --warmup 3 --export-json /tmp/baseline_startup.json
# Memory usage baseline (macOS)
/usr/bin/time -l rtk git status 2>&1 | grep "maximum resident set size" > /tmp/baseline_memory.txt
# Memory usage baseline (Linux)
/usr/bin/time -v rtk git status 2>&1 | grep "Maximum resident set size" > /tmp/baseline_memory.txt
# Binary size baseline
ls -lh target/release/rtk | tee /tmp/baseline_binary_size.txt
test cases passed, vs 13 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.