Skip to content

Gas Optimization & Benchmark Suite #10

Description

@nafiuishaaq

Description:
Create a gas benchmark suite to measure verification costs across proof types. Identify optimization opportunities (e.g., batch pairing, precomputed tables). Document expected gas costs for each operation.

Acceptance Criteria:

benches/gas_bench.rs using soroban-sdk bench utilities.

Benchmarks for: single proof verification, batch of 5 proofs, Poseidon hash (2/4/8 inputs).

Reports: instructions, memory, and storage fees.

Optimizations applied: reuse pairing check results, minimize Bytes copying.

Documentation: GAS_COSTS.md with estimated lumen costs per operation.

Benchmark runs nightly and fails if gas exceeds pre-defined thresholds (e.g., >5M ops for single proof).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions