Combine builtin and BPF compute cost in cost model#29
Conversation
463e136 to
abb983c
Compare
…ince VM has started to consume CUs uniformly
fee6db7 to
2c1398a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #29 +/- ##
=========================================
- Coverage 81.8% 81.8% -0.1%
=========================================
Files 837 838 +1
Lines 225922 225939 +17
=========================================
- Hits 184955 184913 -42
- Misses 40967 41026 +59 |
|
Backports to the stable branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. |
|
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
* Combine builtin and BPF execution cost into programs_execution_cost since VM has started to consume CUs uniformly * update tests * apply suggestions from code review (cherry picked from commit 8f3f06c)
* Combine builtin and BPF execution cost into programs_execution_cost since VM has started to consume CUs uniformly * update tests * apply suggestions from code review (cherry picked from commit 8f3f06c) # Conflicts: # core/src/banking_stage/consumer.rs # cost-model/src/cost_model.rs
* Combine builtin and BPF execution cost into programs_execution_cost since VM has started to consume CUs uniformly * update tests * apply suggestions from code review
Problem
feature gate solana-labs#30620 has been activated everywhere, SVM now consumes compute units uniformly for both builtins and BPF instructions. Cost Model should no longer estimate their cost separately.
Original PR: solana-labs#32080
Summary of Changes
programs_execution_cost, update metrics reporting as well.Fixes #