بنقرة واحدة
bench
Run performance benchmarks measuring function execution time and analysis pipeline throughput.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run performance benchmarks measuring function execution time and analysis pipeline throughput.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Refactor recently written or changed code for quality and efficiency. Use after writing or editing code to clean it up.
Add unit tests for a specific source file or function. Use when the user asks to add tests, write tests, or improve test coverage.
Run unit tests for the project. Use when the user asks to test, verify, or check code correctness.
استنادا إلى تصنيف SOC المهني
| name | bench |
| description | Run performance benchmarks measuring function execution time and analysis pipeline throughput. |
| argument-hint | [functions|pipeline] |
| disable-model-invocation | true |
| allowed-tools | Bash(npx tsc *), Bash(npx mocha *), Bash(npm run *) |
Compile and run benchmarks for this project's parser, analyzer, and fix functions.
Compile TypeScript:
npx tsc -p . --outDir out
Run benchmarks based on arguments:
functions — individual function benchmarks only:
npx mocha --ui tdd --require out/test/vscode-mock.js --timeout 30000 "out/test/benchmark/functions.bench.js"
pipeline — full analysis pipeline benchmarks only:
npx mocha --ui tdd --require out/test/vscode-mock.js --timeout 30000 "out/test/benchmark/pipeline.bench.js"
npm run test:bench
Analyze the results table and report:
| File | What it measures |
|---|---|
src/test/benchmark/functions.bench.ts | Individual function execution time (tokenize, parseArgs, parseRange, fix functions, etc.) |
src/test/benchmark/pipeline.bench.ts | End-to-end file analysis (10/100/500 lines) with tokenization + selector finding + score tracking + fixes |
src/test/fixtures/mcfunction.ts | Test fixtures: SHORT (10 lines), MEDIUM (100 lines), LARGE (500 lines) |