Benchmark CLI

Benchmark CLI is a tool to run benchmarks on your Cairo projects though a single command line.

When you run a benchmark on a Cairo program, it runs locally the entire Cairo stack:

Prerequisites

  • Rust

  • Platinum prover. As of February 2024, the tested revision is fed12d6. You can install the prover with the following command:

cargo install --features=cli,instruments,parallel --git https://github.com/lambdaclass/lambdaworks.git --rev fed12d6 cairo-platinum-prover

Installation

cargo install --git https://github.com/gizatechxyz/giza-benchmark.git

Usage

giza-benchmark -p <SIERRA_FILE> -i <PROGRAM_INPUT_FILE> -b <OUTPUT_DIRECTORY>

Example:

giza-benchmark -p examples/xgb/xgb_inf.sierra.json -i examples/xgb/input.txt -b examples/xgb

Last updated