Skip to content

Commit

Permalink
Kwxm/costing/reduce CEK CPU step costs B (#6153)
Browse files Browse the repository at this point in the history
* Make CEK step costs for models B anc C identical

* Add changelog entry

* Add changelog entry
  • Loading branch information
Kenneth MacKenzie authored May 30, 2024
1 parent 7b3fd3e commit 20e418e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Changed

- CPU charges reduced for PlutusV1 and PlutusV2 scripts in the Conway era.

18 changes: 9 additions & 9 deletions plutus-core/cost-model/data/cekMachineCostsB.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"cekStartupCost" : {"exBudgetCPU": 100, "exBudgetMemory": 100},
"cekVarCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekConstCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekLamCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekDelayCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekForceCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekApplyCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekBuiltinCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekConstrCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100},
"cekCaseCost" : {"exBudgetCPU": 23000, "exBudgetMemory": 100}
"cekVarCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekConstCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekLamCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekDelayCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekForceCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekApplyCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekBuiltinCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekConstrCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100},
"cekCaseCost" : {"exBudgetCPU": 16000, "exBudgetMemory": 100}
}

1 comment on commit 20e418e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Plutus Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.

Benchmark suite Current: 20e418e Previous: 7b3fd3e Ratio
validation-decode-escrow-redeem_1-2 324.3 μs 308.7 μs 1.05
validation-decode-escrow-redeem_2-3 325.8 μs 303.7 μs 1.07
validation-decode-future-settle-early-3 323.6 μs 307.9 μs 1.05
validation-decode-game-sm-success_2-2 176 μs 161.3 μs 1.09

This comment was automatically generated by workflow using github-action-benchmark.

CC: @input-output-hk/plutus-core

Please sign in to comment.