Skip to content

Commit

Permalink
Inline constants by default (turned off in conservative mode) (#5766)
Browse files Browse the repository at this point in the history
Signed-off-by: Ana Pantilie <ana.pantilie95@gmail.com>
  • Loading branch information
ana-pantilie authored Feb 14, 2024
1 parent 08fe5f3 commit c3e9197
Show file tree
Hide file tree
Showing 248 changed files with 1,243 additions and 1,256 deletions.
68 changes: 34 additions & 34 deletions plutus-benchmark/bls12-381-costs/test/9.6/bls12-381-costs.golden
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,44 @@ Hash n bytestrings onto G1 and add points

n Script size CPU usage Memory usage
----------------------------------------------------------------------
0 77 (0.5%) 100 (0.0%) 100 (0.0%)
10 187 (1.1%) 676580182 (6.8%) 39342 (0.3%)
20 297 (1.8%) 1353326072 (13.5%) 75702 (0.5%)
30 407 (2.5%) 2030071962 (20.3%) 112062 (0.8%)
40 517 (3.2%) 2706817852 (27.1%) 148422 (1.1%)
50 627 (3.8%) 3383563742 (33.8%) 184782 (1.3%)
60 737 (4.5%) 4060309632 (40.6%) 221142 (1.6%)
70 847 (5.2%) 4737055522 (47.4%) 257502 (1.8%)
80 957 (5.8%) 5413801412 (54.1%) 293862 (2.1%)
90 1067 (6.5%) 6090547302 (60.9%) 330222 (2.4%)
100 1177 (7.2%) 6767293192 (67.7%) 366582 (2.6%)
110 1287 (7.9%) 7444039082 (74.4%) 402942 (2.9%)
120 1397 (8.5%) 8120784972 (81.2%) 439302 (3.1%)
130 1507 (9.2%) 8797530862 (88.0%) 475662 (3.4%)
140 1617 (9.9%) 9474276752 (94.7%) 512022 (3.7%)
150 1727 (10.5%) 10151022642 (101.5%) 548382 (3.9%)
0 75 (0.5%) 100 (0.0%) 100 (0.0%)
10 185 (1.1%) 676511182 (6.8%) 39042 (0.3%)
20 295 (1.8%) 1353257072 (13.5%) 75402 (0.5%)
30 405 (2.5%) 2030002962 (20.3%) 111762 (0.8%)
40 515 (3.1%) 2706748852 (27.1%) 148122 (1.1%)
50 625 (3.8%) 3383494742 (33.8%) 184482 (1.3%)
60 735 (4.5%) 4060240632 (40.6%) 220842 (1.6%)
70 845 (5.2%) 4736986522 (47.4%) 257202 (1.8%)
80 955 (5.8%) 5413732412 (54.1%) 293562 (2.1%)
90 1065 (6.5%) 6090478302 (60.9%) 329922 (2.4%)
100 1175 (7.2%) 6767224192 (67.7%) 366282 (2.6%)
110 1285 (7.8%) 7443970082 (74.4%) 402642 (2.9%)
120 1395 (8.5%) 8120715972 (81.2%) 439002 (3.1%)
130 1505 (9.2%) 8797461862 (88.0%) 475362 (3.4%)
140 1615 (9.9%) 9474207752 (94.7%) 511722 (3.7%)
150 1725 (10.5%) 10150953642 (101.5%) 548082 (3.9%)


Hash n bytestrings onto G2 and add points

n Script size CPU usage Memory usage
----------------------------------------------------------------------
0 77 (0.5%) 100 (0.0%) 100 (0.0%)
10 187 (1.1%) 2070864812 (20.7%) 39684 (0.3%)
20 297 (1.8%) 4143208322 (41.4%) 76404 (0.5%)
30 407 (2.5%) 6215551832 (62.2%) 113124 (0.8%)
40 517 (3.2%) 8287895342 (82.9%) 149844 (1.1%)
50 627 (3.8%) 10360238852 (103.6%) 186564 (1.3%)
60 737 (4.5%) 12432582362 (124.3%) 223284 (1.6%)
70 847 (5.2%) 14504925872 (145.0%) 260004 (1.9%)
80 957 (5.8%) 16577269382 (165.8%) 296724 (2.1%)
90 1067 (6.5%) 18649612892 (186.5%) 333444 (2.4%)
100 1177 (7.2%) 20721956402 (207.2%) 370164 (2.6%)
110 1287 (7.9%) 22794299912 (227.9%) 406884 (2.9%)
120 1397 (8.5%) 24866643422 (248.7%) 443604 (3.2%)
130 1507 (9.2%) 26938986932 (269.4%) 480324 (3.4%)
140 1617 (9.9%) 29011330442 (290.1%) 517044 (3.7%)
150 1727 (10.5%) 31083673952 (310.8%) 553764 (4.0%)
0 75 (0.5%) 100 (0.0%) 100 (0.0%)
10 185 (1.1%) 2070795812 (20.7%) 39384 (0.3%)
20 295 (1.8%) 4143139322 (41.4%) 76104 (0.5%)
30 405 (2.5%) 6215482832 (62.2%) 112824 (0.8%)
40 515 (3.1%) 8287826342 (82.9%) 149544 (1.1%)
50 625 (3.8%) 10360169852 (103.6%) 186264 (1.3%)
60 735 (4.5%) 12432513362 (124.3%) 222984 (1.6%)
70 845 (5.2%) 14504856872 (145.0%) 259704 (1.9%)
80 955 (5.8%) 16577200382 (165.8%) 296424 (2.1%)
90 1065 (6.5%) 18649543892 (186.5%) 333144 (2.4%)
100 1175 (7.2%) 20721887402 (207.2%) 369864 (2.6%)
110 1285 (7.8%) 22794230912 (227.9%) 406584 (2.9%)
120 1395 (8.5%) 24866574422 (248.7%) 443304 (3.2%)
130 1505 (9.2%) 26938917932 (269.4%) 480024 (3.4%)
140 1615 (9.9%) 29011261442 (290.1%) 516744 (3.7%)
150 1725 (10.5%) 31083604952 (310.8%) 553464 (4.0%)


Uncompress n G1 points and add the results
Expand Down Expand Up @@ -103,7 +103,7 @@ VRF example

n Script size CPU usage Memory usage
----------------------------------------------------------------------
- 714 (4.4%) 1303368563 (13.0%) 49449 (0.4%)
- 715 (4.4%) 1303368563 (13.0%) 49449 (0.4%)

G1 Verify

Expand All @@ -127,7 +127,7 @@ Aggregate Multi Key

n Script size CPU usage Memory usage
----------------------------------------------------------------------
- 1701 (10.4%) 3676960887 (36.8%) 430886 (3.1%)
- 1704 (10.4%) 3676891887 (36.8%) 430586 (3.1%)

Schnorr Signature G1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 215190496
| mem: 740280})
({cpu: 215121496
| mem: 739980})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 318563258
| mem: 1148984})
({cpu: 318494258
| mem: 1148684})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 233064631
| mem: 813142})
({cpu: 232995631
| mem: 812842})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 193813161
| mem: 665714})
({cpu: 193744161
| mem: 665414})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 215630084
| mem: 741820})
({cpu: 215561084
| mem: 741520})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 198410174
| mem: 675264})
({cpu: 198341174
| mem: 674964})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 196916597
| mem: 670062})
({cpu: 196847597
| mem: 669762})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 242350272
| mem: 842458})
({cpu: 242281272
| mem: 842158})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 231983448
| mem: 807632})
({cpu: 231914448
| mem: 807332})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 212366629
| mem: 731700})
({cpu: 212297629
| mem: 731400})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 228876366
| mem: 790180})
({cpu: 228807366
| mem: 789880})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 237522811
| mem: 833156})
({cpu: 237453811
| mem: 832856})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 271106152
| mem: 953580})
({cpu: 271037152
| mem: 953280})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 194025187
| mem: 663336})
({cpu: 193956187
| mem: 663036})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 211186829
| mem: 726696})
({cpu: 211117829
| mem: 726396})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 195543413
| mem: 663662})
({cpu: 195474413
| mem: 663362})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 231957108
| mem: 816128})
({cpu: 231888108
| mem: 815828})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 208852885
| mem: 721874})
({cpu: 208783885
| mem: 721574})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 210080867
| mem: 737000})
({cpu: 210011867
| mem: 736700})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 236972199
| mem: 830902})
({cpu: 236903199
| mem: 830602})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 197071500
| mem: 677660})
({cpu: 197002500
| mem: 677360})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 221821467
| mem: 767608})
({cpu: 221752467
| mem: 767308})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 215190496
| mem: 740280})
({cpu: 215121496
| mem: 739980})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 229625754
| mem: 799928})
({cpu: 229556754
| mem: 799628})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 201406281
| mem: 686966})
({cpu: 201337281
| mem: 686666})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 198198210
| mem: 677642})
({cpu: 198129210
| mem: 677342})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 197821685
| mem: 673962})
({cpu: 197752685
| mem: 673662})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 192531548
| mem: 658134})
({cpu: 192462548
| mem: 657834})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 218883854
| mem: 752828})
({cpu: 218814854
| mem: 752528})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 206252520
| mem: 706212})
({cpu: 206183520
| mem: 705912})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 223621194
| mem: 779702})
({cpu: 223552194
| mem: 779402})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 201406281
| mem: 686966})
({cpu: 201337281
| mem: 686666})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 188734988
| mem: 647508})
({cpu: 188665988
| mem: 647208})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 211833524
| mem: 731194})
({cpu: 211764524
| mem: 730894})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 194025125
| mem: 663336})
({cpu: 193956125
| mem: 663036})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 194025125
| mem: 663336})
({cpu: 193956125
| mem: 663036})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 233147796
| mem: 807900})
({cpu: 233078796
| mem: 807600})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 204935205
| mem: 705448})
({cpu: 204866205
| mem: 705148})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 232567113
| mem: 815654})
({cpu: 232498113
| mem: 815354})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 215190496
| mem: 740280})
({cpu: 215121496
| mem: 739980})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 240291811
| mem: 832034})
({cpu: 240222811
| mem: 831734})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 196328108
| mem: 668760})
({cpu: 196259108
| mem: 668460})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 196328108
| mem: 668760})
({cpu: 196259108
| mem: 668460})
Loading

0 comments on commit c3e9197

Please sign in to comment.