Labels: medium-difficulty, testing, benchmarks
Difficulty: Medium
Module: tests/benchmarks/
🧠 Concept
Create a test runner that executes contracts before and after applying GasGuard refactors, measuring actual gas spent using Anvil / Soroban RPC local testnets.
⚠️ Problem
Estimates are helpful, but developers want empirical proof showing the exact gas difference before merging refactored code.
📁 Implementation Scope
tests/benchmarks/gas-comparator.ts
tests/benchmarks/fixtures/
🛠️ Requirements
- Deploy original fixture contract and refactored contract to local dev node.
- Execute target transaction and capture
gasUsed / resource units.
- Export a benchmark report comparing actual gas delta versus rule estimates.
🎯 Acceptance Criteria
Labels:
medium-difficulty,testing,benchmarksDifficulty: Medium
Module:
tests/benchmarks/🧠 Concept
Create a test runner that executes contracts before and after applying GasGuard refactors, measuring actual gas spent using Anvil / Soroban RPC local testnets.
Estimates are helpful, but developers want empirical proof showing the exact gas difference before merging refactored code.
📁 Implementation Scope
tests/benchmarks/gas-comparator.tstests/benchmarks/fixtures/🛠️ Requirements
gasUsed/ resource units.🎯 Acceptance Criteria