agentskills.codes

Run Criterion benchmarks for the workspace or a specific group. Use when the user asks to benchmark, measure performance, or compare algorithm speeds.

Install

mkdir -p .claude/skills/bench && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14756" && unzip -o skill.zip -d .claude/skills/bench && rm skill.zip

Installs to .claude/skills/bench

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Run Criterion benchmarks for the workspace or a specific group. Use when the user asks to benchmark, measure performance, or compare algorithm speeds.
150 chars✓ has a “when” trigger

About this skill

Run Criterion benchmarks for openHiTLS-rs.

Usage

  • /bench — run all benchmarks
  • /bench sha2 — run benchmarks matching "sha2"
  • /bench aes -- --sample-size 200 — custom Criterion flags

Behavior

  1. If $ARGUMENTS is empty, run:

    cargo bench --package hitls-crypto --all-features
    
  2. If $ARGUMENTS specifies a filter, run:

    cargo bench --package hitls-crypto --all-features -- "$ARGUMENTS"
    
  3. After benchmarks complete, report:

    • Median times for each benchmark
    • Throughput (MB/s) for data-processing benchmarks
    • Comparison with previous run (if Criterion baseline exists)

Benchmark Groups

GroupAlgorithms
sha2SHA-256, SHA-384, SHA-512
sha3SHA3-256
sm3SM3
hmacHMAC-SHA256, HMAC-SHA512, HMAC-SM3
aes_gcmAES-128-GCM, AES-256-GCM
aes_cbcAES-128-CBC, AES-256-CBC
chacha20ChaCha20-Poly1305
sm4_cbcSM4-CBC
sm4_gcmSM4-GCM
rsaRSA-2048/3072/4096 keygen + sign/verify
ecdsaECDSA P-256/P-384 sign/verify
ed25519Ed25519 sign/verify
x25519X25519 key exchange
ecdhECDH P-256/P-384
dhFFDHE-2048/3072/4096
sm2SM2 sign/verify
mlkemML-KEM-512/768/1024
mldsaML-DSA-44/65/87

Tips

  • Use --save-baseline <name> to save a baseline for later comparison
  • Use --baseline <name> to compare against a saved baseline
  • Results are stored in target/criterion/

Search skills

Search the agent skills registry