Skip to content

Add gas benchmarks for insurance schedule heavy workloads #286

@Baskarayelu

Description

@Baskarayelu

Description

Benchmark policy schedule operations under heavy workloads and compare against baseline thresholds.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Cover create, modify, cancel, execute, and query schedule paths

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b test/insurance-scheduler-gas-workloads
  • Implement changes
  • Write contract: insurance/src/lib.rs
  • Write comprehensive tests: insurance/tests/gas_bench.rs
  • Add documentation: benchmarks/README.md
  • Include NatSpec-style comments
  • Validate security assumptions

Test and commit

  • Run tests: RUST_TEST_THREADS=1 cargo test -p insurance --test gas_bench -- --nocapture
  • Cover edge cases
  • Include test output and security notes

Example commit message

test: add gas benchmarks for insurance scheduler workloads

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:insuranceRemitWise contracts labelcontractsRemitWise contracts labelgasGas/performanceperformanceRemitWise contracts labelpriority:mediumRemitWise contracts labeltype:testRemitWise contracts label

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions