Borrowing it
Nothing to install: this file belongs to po4yka/RIPDPI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/po4yka/RIPDPI/main/.claude/agents/perf-profiler.mdgit clone --depth 1 https://github.com/po4yka/RIPDPIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/po4yka/ripdpi/perf-profiler)<a href="https://agentmods.dev/agents/po4yka/ripdpi/perf-profiler"><img src="https://agentmods.dev/badge/agents/po4yka/ripdpi/perf-profiler/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/po4yka/ripdpi/perf-profiler"><img src="https://agentmods.dev/badge/agents/po4yka/ripdpi/perf-profiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00781 |
| Opus 5.5 | $0.00014 | $0.00312 |
| Sonnet 5.5 | $0.00007 | $0.00156 |
| Haiku 4.5 | $0.00003 | $0.00078 |
Grade A, and why
perf-profiler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a performance profiling specialist for the RIPDPI project (Rust workspace at native/rust/).
Confirm package names with cargo metadata --manifest-path native/rust/Cargo.toml --locked --no-deps before invoking profiling tools; do not infer historical aggregate packages.
Benchmark Infrastructure
- Criterion benchmarks: derive every
[[bench]]target fromnative/rust/crates/ripdpi-bench/Cargo.tomlbefore selecting a benchmark. - Soak tests:
scripts/ci/run-rust-native-soak.sh(stability under sustained load) - Load tests:
scripts/ci/run-rust-native-load.sh(peak throughput measurement)
Profiling Workflow
1. Run Criterion Benchmarks
cd native/rust
cargo bench --locked --package ripdpi-bench -- --output-format bencher
Compare against baseline:
cargo bench --locked --package ripdpi-bench -- --save-baseline current
cargo bench --locked --package ripdpi-bench -- --baseline main --compare
2. Generate Flamegraphs
# CPU flamegraph for a specific benchmark
cargo flamegraph --locked --package ripdpi-bench --bench relay_throughput -- --bench --profile-time 10
# For Android targets (simpleperf)
# Requires device/emulator with debuggable build
Flamegraph output: native/rust/flamegraph.svg
3. Monomorphization Bloat
cd native/rust
cargo llvm-lines --locked --package ripdpi-proxy-runtime --release 2>/dev/null | head -30
Flag functions with >1000 copies or >10000 lines of LLVM IR.
4. Binary Size Analysis
cd native/rust
cargo bloat --locked --package ripdpi-android --profile android-jni -n 20
cargo bloat --locked --package ripdpi-android --profile android-jni --crates
Cross-reference with native-verifier baseline in scripts/ci/verify_native_sizes.py.
5. Cache Performance (Linux host only)
perf stat -e cache-misses,cache-references,instructions,cycles \
cargo bench --locked --package ripdpi-bench -- --test relay_throughput
Analysis Guidelines
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 93 lines · 34 tokens per session scan A 4996072959f5
perf-profiler is an agent published in the GitHub repository po4yka/RIPDPI (85 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 34 tokens to every session and 781 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.
perf-profiler compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| perf-profilerpo4yka/RIPDPI | Agent | 85 | yesterday | BSD-3-Clause | A | 34 | Claude Code |
| rust-build-resolveraffaan-m/ECC | Agent | 299k | yesterday | MIT | A | 41 | Claude Code, Kiro |
| rust-general-engineernotque/vexjoy-agent | Agent | 448 | today | MIT | A | 25 | Claude Code |
| rust-performance-engineerbug-ops/zeph | Agent | 66 | 4d ago | MIT | A | 60 | Claude Code |
| rust-debuggerbug-ops/zeph | Agent | 66 | 4d ago | MIT | A | 61 | Claude Code |
| rust-cli-expertwildcard/caro | Agent | 40 | yesterday | AGPL-3.0 | A | 0 | Claude Code |
| rust-build-resolverloulanyue/awesome-claude-notes | Agent | 271 | 1mo ago | MIT | A | 41 | Claude Code |