Skip to content

[codex] add contract performance profiling#478

Open
Flamki wants to merge 1 commit into
Nanle-code:masterfrom
Flamki:codex/contract-performance-profiling
Open

[codex] add contract performance profiling#478
Flamki wants to merge 1 commit into
Nanle-code:masterfrom
Flamki:codex/contract-performance-profiling

Conversation

@Flamki

@Flamki Flamki commented Jul 1, 2026

Copy link
Copy Markdown

Closes #354

Summary

  • add a reusable contract profiler for compiled Soroban WASM artifacts
  • profile estimated execution time, CPU gas, instruction hot spots, memory pressure, and bottlenecks
  • compare a candidate profile against a saved JSON baseline and flag >10% gas/time/memory regressions
  • generate JSON reports plus an optional HTML performance dashboard from starforge advanced-perf profile
  • document profiling, dashboard, and baseline workflows in the benchmark and command docs

Validation

  • rustfmt --edition 2021 --check src/utils/contract_profiler.rs src/commands/perf.rs

Notes

  • cargo fmt is currently blocked by pre-existing syntax issues in src/utils/horizon.rs and src/commands/gas.rs.
  • cargo test contract_profiler --lib could not complete locally because the checkout exhausted disk space while compiling dependencies before crate tests ran. The generated target directory was removed afterward and no generated files are included.

@drips-wave

drips-wave Bot commented Jul 1, 2026

Copy link
Copy Markdown

@Flamki Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

D-17: Add Contract Performance Profiling

1 participant