agentleFS
sebyx07sebyx07/ruby2html/.claude/skills/benchmark/SKILL.md

benchmark

Skill23 starsChanged 12 days agoMITView on GitHub

Measure ruby2html rendering performance and compare before/after a change (C extension, pure-Ruby twin, render.rb, template handler, components). Use when a change claims or may affect speed, or when the user asks to benchmark, profile or compare against ERB/Slim/Phlex/ViewComponent.

95 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-clean, ios-fix and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • seek888Skill

    pair-agent

    Pair a remote AI agent with your browser. One command generates a setup key and prints instructions the other agent can follow to connect. Works with OpenClaw, Hermes, Codex, Cursor, or any agent that can make HTTP requests. The remote agent gets its own tab with scoped access (read+write by default, admin on request). Use when asked to "pair agent", "connect agent", "share browser", "remote browser", "let another agent use my browser", or "give browser access". (gstack) Voice triggers (speech-to-text aliases): "pair agent", "connect agent", "share my browser", "remote browser access".

    Also in 11 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 8 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 7 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 8 projects that use this

  • +1 more from Saqlain-811

The file

Files
SKILL.md

Benchmark ruby2html (before/after)

Project rule: speed over memory. Perf claims need numbers from the same machine, Ruby and YJIT state.

Tools

CommandMeasures
bundle exec rake benchcompiles, runs every bench/*.rb
bundle exec ruby bench/render_bench.rbfull page render vs Phlex / Erubi, plus allocations per render
bundle exec ruby bench/tag_bench.rbper-tag cost for common call shapes
bundle exec ruby bench/escape_bench.rbescaping throughput, clean/dirty, short/long
bundle exec rspec spec/benchmarks/request-level through the demo app: ERB, Slim, .html.rb, ViewComponent, Phlex (10 s warmup + 60 s each, ~6 min; skipped when CI is set)

Variants: --yjit (or RUBY_YJIT_ENABLE=1), RUBY2HTML_DISABLE_EXT=1 (pure Ruby), BENCH_TIME=5 (seconds per ips run, render_bench), RUBY2HTML_NO_SIMD=1 bundle exec rake compile (scalar escape path; recompile normally afterwards). Read each script's header for its options.

Procedure

  1. Record environment: ruby -v (shows +YJIT), uname -m, which variant flags were used.
  2. Baseline on the base revision: git worktree add "$SCRATCH/r2h-base" <rev> (or git stash), bundle exec rake compile there, run the chosen command, save output to the scratch dir.
  3. Candidate: back on the change, bundle exec rake compile (mandatory after ext/ edits), identical command, save output.
  4. Repeat each side at least twice if the delta is < 10%; overlapping benchmark-ips error bars = "no measurable change". Check allocation counts (render_bench) for regressions too.
  5. Correctness: CI=1 bundle exec rspec.
  6. Report a table: benchmark, before, after, ratio, error; environment line. Never round away regressions. Remove the worktree (git worktree remove).

README tables are updated only when the maintainer asks, with the environment line.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.