Skip to content

Add gas usage optimization benchmarks for critical paths #523

Description

@abayomicornelius

Problem

No systematic tracking of instruction costs. Soroban has resource limits that could be hit.

Why it matters

Hitting instruction limits would cause transaction failures in production.

Suggested fix

Add benchmark suite measuring instruction costs for: execute_order, liquidate_position, execute_deposit.

Acceptance criteria

  • Set up benchmark harness
  • Measure critical path costs
  • Set maximum thresholds
  • CI fails if thresholds exceeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions