Bench compare

From dathere/qsv-stats · View interactive version

Bench compare is an AI agent skill from the GitHub repository dathere/qsv-stats. Run before/after benchmarks comparing current branch against master

How to use this skill

Skill file

Benchmark Comparison

Compare performance of the current branch against master using hyperfine.

Workflow

  1. Note the current branch name and ensure working tree is clean (stash if needed)
  2. Build the library in release mode on the current branch: cargo build --release
  3. Run the user-specified benchmark or test command with hyperfine, e.g.:

```

hyperfine --warmup 3 --min-runs 10 'cargo test --release <test_name>'

```

  1. Record the result (mean, stddev, min, max)
  2. Switch to master: git checkout master
  3. Build release: cargo build --release
  4. Run the same benchmark with hyperfine
  5. Record the result
  6. Switch back to the original branch (and pop stash if used)
  7. Report a comparison table:

| Branch | Mean | Stddev | Min | Max |

|--------|------|--------|-----|-----|

| master | ... | ... | ... | ... |

| current | ... | ... | ... | ... |

| Change | +/- % | | | |

Arguments

The user should provide:

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.