Skip to content
Back to skills

Benchmark

ASecurity

Run benchmarks for the crypto-rs-backtester project (Python and Rust).

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspythonrustgobashperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill benchmark --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Benchmark?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Benchmark
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-benchmark/badge)](https://www.skillsdirectory.com/skills/david-li0406-benchmark)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: benchmark
description: Run benchmarks for the crypto-rs-backtester project (Python and Rust).
metadata:
  owner: user
  version: "0.1.0"
---

# Benchmark Skill

This skill allows you to run performance benchmarks for the project.

## 1. Python Benchmarks

Run the Python-side benchmarks using `pytest`.

```bash
pytest -m bench -q
```

## 2. Rust Benchmarks (Standard)

Run the standard Rust core benchmarks.

```bash
cargo bench -p backtester-core
```

## 3. Rust Benchmarks (Custom Configuration)

Run Rust benchmarks with custom parameters using the helper script.
This allows you to tune the number of symbols, ticks per symbol, and batch window size.

```bash
# Run with default 'heavy' settings (8 symbols, 500k ticks)
./.agent/skills/benchmark/scripts/run_custom_bench.sh
```

You can also set environment variables manually if you prefer:

```bash
BACKTEST_BENCH_NSYMBOLS=8 \
BACKTEST_BENCH_TICKS_PER_SYMBOL=500000 \
cargo bench -p backtester-core --bench bench_core
```

## 4. Profile-Guided Optimization (PGO)

To build and benchmark with PGO (Linux/macOS).
**Note**: This process is time-consuming as it runs a full build-profile-rebuild pipeline.

```bash
make pgo
```

Files in this skill

  • SKILL.md1.2 KB
  • scripts/run_custom_bench.sh888 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…