-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-1568 Cost for all builtins (#5700)
Add support for costing all builtins, both in counting and tallying mode. When run it will get the builtin costing parameters from the data/builtinCostModel.json file. Since the file has to be under the plutus-metatheory folder for cabal to find it, the file is currently copied from the one in plutus-core/cost-model/data/builtinCostModel.json. It has only been tested manually that cost reports by plc-agda coincide with the ones reported by uplc. There is another ticket for adding automated tests.
- Loading branch information
1 parent
81ac3ed
commit e2f555f
Showing
10 changed files
with
1,413 additions
and
217 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ author: James Chapman | |
maintainer: [email protected] | ||
category: Development | ||
extra-source-files: | ||
data/builtinCostModel.json | ||
Plutus.agda-lib | ||
README.md | ||
src/**/*.lagda | ||
|
@@ -52,6 +53,7 @@ library | |
import: lang | ||
hs-source-dirs: src | ||
build-depends: | ||
, aeson | ||
, base | ||
, bytestring | ||
, composition-prelude | ||
|
@@ -71,6 +73,7 @@ library | |
build-depends: integer-gmp | ||
|
||
exposed-modules: | ||
Cost.JSON | ||
Opts | ||
Raw | ||
Untyped | ||
|
@@ -132,6 +135,8 @@ library | |
MAlonzo.Code.Check | ||
MAlonzo.Code.Cost | ||
MAlonzo.Code.Cost.Base | ||
MAlonzo.Code.Cost.Model | ||
MAlonzo.Code.Cost.Raw | ||
MAlonzo.Code.Data.Bool.Base | ||
MAlonzo.Code.Data.Bool.Properties | ||
MAlonzo.Code.Data.Char.Base | ||
|
@@ -355,6 +360,8 @@ library | |
MAlonzo.Code.Check | ||
MAlonzo.Code.Cost | ||
MAlonzo.Code.Cost.Base | ||
MAlonzo.Code.Cost.Model | ||
MAlonzo.Code.Cost.Raw | ||
MAlonzo.Code.Data.Bool.Base | ||
MAlonzo.Code.Data.Bool.Properties | ||
MAlonzo.Code.Data.Char.Base | ||
|
@@ -528,6 +535,7 @@ executable plc-agda | |
import: lang | ||
hs-source-dirs: exe | ||
main-is: Main.hs | ||
other-modules: Paths_plutus_metatheory | ||
build-depends: | ||
, base | ||
, plutus-metatheory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e2f555f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
.validation-decode-future-pay-out-2
337.7
μs321.5
μs1.05
This comment was automatically generated by workflow using github-action-benchmark.
CC: @input-output-hk/plutus-core