unitbench-openzl-scenarios
Skill by facebook
Guides developers in creating unitBench benchmark scenarios for new OpenZL codec nodes. It covers kernel-level encode and decode benchmarks and graph-level compress and decompress benchmarks.
Install unitbench-openzl-scenarios
Built from the published package, never by AI.
git clone --depth 1 https://github.com/facebook/openzl /tmp/openzl && mkdir -p ~/.claude/skills && cp -r /tmp/openzl/.claude/skills/unitbench-scenarios ~/.claude/skills/unitbench-openzl-scenariosRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install unitbench-openzl-scenarios in Claude Code
git clone --depth 1 https://github.com/facebook/openzl /tmp/openzl && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/openzl/.claude/skills/unitbench-scenarios ~/.gemini/antigravity-cli/skills/unitbench-openzl-scenariosAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install unitbench-openzl-scenarios in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill helps an AI assistant create benchmark scenarios for new OpenZL codec nodes in unitBench. It covers two types. Kernel benchmarks test encode and decode kernel functions directly. Graph benchmarks test a node inside a full compress and decompress pipeline, which is required when no standalone kernel exists. The skill lists file locations, header and source patterns, and the registration steps in benchList.h and the BUCK file.
The skill also explains generating test data in /tmp with dd, building and running with buck in mode/opt, and using make as a fallback. It lists common mistakes, such as a missing prep function or a wrong outSize. It is aimed at developers adding codec nodes such as bitsplit, delta, transpose or entropy to OpenZL and measuring them.
Written from the project's SKILL.md and checked against it.
What it can do
- Kernel benchmark scenariosCreates encode and decode kernel benchmarks with prep, wrapper and outSize functions for a codec.
- Graph benchmark scenariosBuilds a graph with a tokenizer, the new node and a downstream graph for compress and decompress tests.
- Scenario registrationAdds include lines and scenarioList entries in benchList.h, kept in alphabetical order.
- BUCK target setupAdds a library target for graph benchmarks following the sao_graph pattern.
- Test data and runningGenerates test files in /tmp and runs unitBench with buck or make, with options for duration, blocks and CSV output.
What you need
- OpenZL development tree with unitBench
- Buck build system, or make as a fallback
- dd command to generate test data
Try asking
- Create kernel and graph benchmark scenarios for my new bitsplit codec node.
- Register my new delta codec benchmarks in benchList.h in alphabetical order.
- Generate 10MB test data and show the buck command to run my transpose benchmark.
Good to know
- Kernel benchmarks need a standalone kernel API; otherwise the node must be tested in a graph.
- Test data size must be a multiple of the element width being tested.
- Test data should go in /tmp, not in the source tree.
- Benchmarks should use buck build or run in @//mode/opt.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/unitbench-scenarios/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to unitbench-openzl-scenarios
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
unitbench-openzl-scenarios: common questions
When should I use a kernel benchmark instead of a graph benchmark?
Use a kernel benchmark when the node has a standalone kernel function, to test encode and decode directly with minimal overhead. Use a graph benchmark when there is no standalone kernel or to measure overhead in a full pipeline.
Which tokenizer node should graph benchmarks use?
The tokenizer must match the element width: ZL_NODE_INTERPRET_AS_LE16 for 2 bytes, LE32 for 4 bytes and LE64 for 8 bytes.
What is the reference example for these scenarios?
The skill points to scenarios/codecs/bitSplit.c for kernel benchmarks and scenarios/sao_graph.c for a complex multi-stream graph example.
How do I install unitbench-openzl-scenarios?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is unitbench-openzl-scenarios free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is unitbench-openzl-scenarios safe to use?
It scores 82 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to unitbench-openzl-scenarios?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
