-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kwxm/provisional conway cost model #6087
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
95ddf6f
Rename semantics variants
kwxm 37626f5
Change some names
kwxm 459bd0e
Get uplc to use correct cost model for semvar
kwxm 05de829
Dumping cost models
kwxm 790925a
Dumping cost models
kwxm b081298
Tidy up exports and tests
kwxm 1aa62d9
Move a function
kwxm b6f77ae
Merge branch 'master' into kwxm/provisional-conway-cost-model
kwxm 6694bff
Merge branch 'master' into kwxm/provisional-conway-cost-model
kwxm bfe5621
More updates
kwxm 5e9b016
Fix some typos
kwxm 99a02a0
Update models.R
kwxm c5eaca6
Add updated cost models
kwxm 618f503
Add updated cost models
kwxm a3d8c81
Merge branch 'master' into kwxm/provisional-conway-cost-model
kwxm c3cbc4a
Update test results
kwxm 8665088
Remove obsolete entries from V3.ParamName
kwxm 135b77a
Fix cost model interface test
kwxm ecb5b3b
Fix (sort of) plutus-ledger-api tests
kwxm 02d3124
Merge branch 'master' into kwxm/provisional-conway-cost-model
kwxm b95143e
Various small fixes
kwxm 0c44a14
Forgot to update parameters
kwxm 99edf4d
Add changelog entries
kwxm c4e12de
Fix the changelog entries
kwxm dd7146e
Merge branch 'master' into kwxm/provisional-conway-cost-model
kwxm d259119
Address PR review comments
kwxm c8eca7e
Add costs for new builtins to V1 and V2 cost model files
kwxm 6303ca2
Fix some dependencies in plutus-benchmark
kwxm 2b8a3e9
Fix partial reversion of #6086 caused by merge
kwxm dcc7d80
Remove old cost model files
kwxm 9d41f50
Update/rename benchmark CSV files
kwxm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
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
32 changes: 16 additions & 16 deletions
32
plutus-benchmark/ed25519-costs/test/9.6/ed25519-costs.golden
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
n Script size CPU usage Memory usage | ||
---------------------------------------------------------------------- | ||
0 481 (2.9%) 5848112 (0.1%) 21522 (0.2%) | ||
10 2208 (13.5%) 732286512 (7.3%) 516352 (3.7%) | ||
20 3935 (24.0%) 1458724912 (14.6%) 1011182 (7.2%) | ||
30 5662 (34.6%) 2185163312 (21.9%) 1506012 (10.8%) | ||
40 7389 (45.1%) 2911601712 (29.1%) 2000842 (14.3%) | ||
50 9115 (55.6%) 3638040112 (36.4%) 2495672 (17.8%) | ||
60 10842 (66.2%) 4364478512 (43.6%) 2990502 (21.4%) | ||
70 12569 (76.7%) 5090916912 (50.9%) 3485332 (24.9%) | ||
80 14295 (87.2%) 5817355312 (58.2%) 3980162 (28.4%) | ||
90 16022 (97.8%) 6543793712 (65.4%) 4474992 (32.0%) | ||
100 17749 (108.3%) 7270232112 (72.7%) 4969822 (35.5%) | ||
110 19476 (118.9%) 7996670512 (80.0%) 5464652 (39.0%) | ||
120 21202 (129.4%) 8723108912 (87.2%) 5959482 (42.6%) | ||
130 22929 (139.9%) 9449547312 (94.5%) 6454312 (46.1%) | ||
140 24656 (150.5%) 10175985712 (101.8%) 6949142 (49.6%) | ||
150 26383 (161.0%) 10902424112 (109.0%) 7443972 (53.2%) | ||
0 481 (2.9%) 4458441 (0.0%) 21522 (0.2%) | ||
10 2208 (13.5%) 646843741 (6.5%) 516352 (3.7%) | ||
20 3935 (24.0%) 1289229041 (12.9%) 1011182 (7.2%) | ||
30 5662 (34.6%) 1931614341 (19.3%) 1506012 (10.8%) | ||
40 7389 (45.1%) 2573999641 (25.7%) 2000842 (14.3%) | ||
50 9115 (55.6%) 3216384941 (32.2%) 2495672 (17.8%) | ||
60 10842 (66.2%) 3858770241 (38.6%) 2990502 (21.4%) | ||
70 12569 (76.7%) 4501155541 (45.0%) 3485332 (24.9%) | ||
80 14295 (87.2%) 5143540841 (51.4%) 3980162 (28.4%) | ||
90 16022 (97.8%) 5785926141 (57.9%) 4474992 (32.0%) | ||
100 17749 (108.3%) 6428311441 (64.3%) 4969822 (35.5%) | ||
110 19476 (118.9%) 7070696741 (70.7%) 5464652 (39.0%) | ||
120 21202 (129.4%) 7713082041 (77.1%) 5959482 (42.6%) | ||
130 22929 (139.9%) 8355467341 (83.6%) 6454312 (46.1%) | ||
140 24656 (150.5%) 8997852641 (90.0%) 6949142 (49.6%) | ||
150 26383 (161.0%) 9640237941 (96.4%) 7443972 (53.2%) | ||
|
||
Off-chain version succeeded on 100 inputs |
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
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-builtin-list-10.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 278230764 | ||
({cpu: 196086904 | ||
| mem: 837952}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-builtin-list-100.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 23433064554 | ||
({cpu: 16341428194 | ||
| mem: 69498232}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-builtin-list-5.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 82807834 | ||
({cpu: 58837074 | ||
| mem: 253492}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-builtin-list-50.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 5975766004 | ||
({cpu: 4173000144 | ||
| mem: 17753632}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-scott-list-10.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 184072620 | ||
({cpu: 113745780 | ||
| mem: 538480}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-scott-list-100.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 14151996300 | ||
({cpu: 8662950900 | ||
| mem: 39539800}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-scott-list-5.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 58810710 | ||
({cpu: 36645190 | ||
| mem: 178640}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Lookup/9.6/match-scott-list-50.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 3652106700 | ||
({cpu: 2238212500 | ||
| mem: 10264400}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Sum/9.6/left-fold-built-in.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 167321654 | ||
({cpu: 123874594 | ||
| mem: 533932}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Sum/9.6/left-fold-data.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 361242389 | ||
({cpu: 272684232 | ||
| mem: 1083930}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Sum/9.6/left-fold-scott.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 125205800 | ||
({cpu: 82856900 | ||
| mem: 454900}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Sum/9.6/right-fold-built-in.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 174221654 | ||
({cpu: 128674594 | ||
| mem: 563932}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Sum/9.6/right-fold-data.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 368142389 | ||
({cpu: 277484232 | ||
| mem: 1113930}) |
2 changes: 1 addition & 1 deletion
2
plutus-benchmark/lists/test/Sum/9.6/right-fold-scott.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 132105800 | ||
({cpu: 87656900 | ||
| mem: 484900}) |
2 changes: 1 addition & 1 deletion
2
...payout/9.6/0004000402010401030101030100040000010104020201030001000204020401.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 247988561 | ||
({cpu: 185634074 | ||
| mem: 876490}) |
2 changes: 1 addition & 1 deletion
2
...payout/9.6/0100000100010000000001000100010101000101000001000000010000010000.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 373215336 | ||
({cpu: 274904136 | ||
| mem: 1373904}) |
2 changes: 1 addition & 1 deletion
2
...payout/9.6/0101000100000101010000010101000100010101000001000001000000010101.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 267781649 | ||
({cpu: 200204188 | ||
| mem: 956454}) |
2 changes: 1 addition & 1 deletion
2
...payout/9.6/01dcc372ea619cb9f23c45b17b9a0a8a16b7ca0e04093ef8ecce291667a99a4c.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 213732463 | ||
({cpu: 160863938 | ||
| mem: 747222}) |
2 changes: 1 addition & 1 deletion
2
...payout/9.6/0201020201020000020000010201020001020200000002010200000101010100.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 242342730 | ||
({cpu: 181505946 | ||
| mem: 850332}) |
2 changes: 1 addition & 1 deletion
2
...payout/9.6/0202010002010100020102020102020001010101020102010001010101000100.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 223274662 | ||
({cpu: 168188754 | ||
| mem: 778272}) |
2 changes: 1 addition & 1 deletion
2
...payout/9.6/0303020000020001010201060303040208070100050401080304020801030001.budget.golden
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 221459085 | ||
({cpu: 167027055 | ||
| mem: 771670}) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What happened to this?
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.
Do you mean why did the number for 0 get bigger? If so, it's probably because that's a case where it's processing an empty list. Some of the builtins have got cheaper, but others have got more expensive, at least for certain inputs. My guess is that there's some extra constant cost that gets swallowed up when it gets a nonempty list and actually uses the BLS operations, which have got cheaper.