性能基准测试

benchmark

by BytesAgain

Run performance benchmarks and stress tests using Python profiling tools. Use when you need to measure, compare, or analyze system and application performance.

4.5k其他未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain/benchmark

文档

Benchmark — Performance Benchmark Testing Tool

A comprehensive performance benchmarking skill for running CPU, memory, disk, and network tests. Supports comparison between runs, historical tracking, profiling, and stress testing. All results are stored in JSONL format.

Prerequisites

  • bash (v4+)
  • python3 (v3.6+)
  • Standard system utilities (dd, time, etc.)

Environment Variables

VariableRequiredDescription
BENCH_TYPENoBenchmark type: cpu, memory, disk, network (default: cpu)
BENCH_DURATIONNoDuration in seconds for stress tests (default: 10)
BENCH_THREADSNoNumber of threads for parallel tests (default: 1)
BENCH_IDNoSpecific benchmark ID for comparison/lookup
BENCH_TAGNoTag for organizing benchmark runs
BENCH_FORMATNoExport format: json, csv (default: json)

Data Storage

  • Results: ~/.benchmark/data.jsonl
  • Config: ~/.benchmark/config.json
  • Reports: ~/.benchmark/reports/

Commands

run

Execute a benchmark test of the specified type.

bash
BENCH_TYPE="cpu" BENCH_TAG="baseline" scripts/script.sh run

compare

Compare two benchmark runs side by side.

bash
BENCH_ID="bench_a" BENCH_ID2="bench_b" scripts/script.sh compare

history

Show benchmark run history with optional filtering.

bash
BENCH_TYPE="cpu" BENCH_TAG="baseline" scripts/script.sh history

report

Generate a detailed performance report.

bash
BENCH_ID="bench_abc123" scripts/script.sh report

profile

Run a detailed profiling session with breakdown.

bash
BENCH_TYPE="cpu" BENCH_DURATION="30" scripts/script.sh profile

stress

Run a sustained stress test.

bash
BENCH_TYPE="cpu" BENCH_DURATION="60" BENCH_THREADS="4" scripts/script.sh stress

config

View or update benchmark configuration.

bash
BENCH_KEY="default_duration" BENCH_VALUE="30" scripts/script.sh config

export

Export benchmark data in various formats.

bash
BENCH_FORMAT="csv" scripts/script.sh export

list

List all benchmark runs.

bash
scripts/script.sh list

status

Show benchmarking system status and summary.

bash
scripts/script.sh status

help

Display usage information.

bash
scripts/script.sh help

version

Display current version.

bash
scripts/script.sh version

Output Format

All commands output structured JSON to stdout:

json
{
  "status": "success",
  "command": "run",
  "data": {
    "id": "bench_20240101_120000_abc123",
    "type": "cpu",
    "score": 15234.5,
    "duration_ms": 10000,
    "metrics": {}
  }
}

Error Handling

Exit CodeMeaning
0Success
1General error
2Missing required parameter
3Benchmark not found

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

相关 Skills

Claude API

by anthropic

热门

Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.

其他
安全163.8k

并行代理

by axelhu

热门

Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw

其他
未扫描4.5k

高光制作器

by bwbernardweston18

热门

>

其他
未扫描4.5k

相关资讯

DevRev 发布了企业 AI 智能体基准测试,关注大数据量下的检索能力。其智能体 Computer 在准确率上领先 Claude Code 22-35 个点,token 消耗仅为后者的三分之一。测试框架和数据集已开源。

深度The New Stack·7月9日·8 分钟

Claude Sonnet 5 的系统卡重点评估 AI 代理在实际任务中的可靠性,而非基准测试分数。它展示了代理在长时间任务中保持上下文、防止被恶意页面劫持、失败后自动恢复等能力,为工程团队构建可靠的代理基础设施提供了检查清单。

深度The New Stack·6月30日·6 分钟

ScarfBench 是 IBM Research 推出的开源基准测试,用于评估 AI 代理在 Spring、Jakarta EE 和 Quarkus 等企业 Java 框架间迁移应用的能力。测试覆盖 34 个应用、204 个迁移任务,要求应用构建、部署并通过行为验证。当前最强代理的行为成功率不足 10%,且代理常高估自身完成度。

深度Hugging Face·6月30日·8 分钟

评论