benchmarking-cairo

Official

Profile Cairo code to optimize performance.

Authorkeep-starknet-strange
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Profiles Cairo functions to reveal hotspots, track step counts, and visualize resource usage.

Core Features & Use Cases

  • Applicable to both scarb executables and snforge tests, providing end-to-end profiling from trace generation to PNG export in Cairo projects.
  • Produces a deterministic pb.gz profile and a PNG visualization for quick hotspot analysis and performance review.
  • Useful for optimizing Cairo code, validating performance regressions, and guiding refactors with trace-based insights.

Quick Start

From this skill directory, run python3 profile.py profile --mode snforge --package <package> --test <test> --name <profile-name> --metric steps to generate a profile and PNG.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: benchmarking-cairo
Download link: https://github.com/keep-starknet-strange/garaga/archive/main.zip#benchmarking-cairo

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.