Skip to content

Commit b1b20af

Browse files
feat: 2.3.0 update (#3967)
* feat: 2.3.0 update * chore: update dockerfile to use 2.3.0 * chore: 2.3.0 bench * chore: update bench to 2.3.0 * chore: update bench results for 2.3.0 * fix: clippy (#2) --------- Co-authored-by: Swaroop Maddu <swaroop@osec.io>
1 parent d5d7eb9 commit b1b20af

File tree

11 files changed

+275
-272
lines changed

11 files changed

+275
-272
lines changed

.github/workflows/no-caching-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: ./.github/workflows/reusable-tests.yaml
1414
with:
1515
cache: false
16-
solana_cli_version: 2.1.0
16+
solana_cli_version: 2.3.0
1717
node_version: 20.18.0
1818
cargo_profile: release
1919
anchor_binary_name: anchor-binary-no-caching

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: ./.github/workflows/reusable-tests.yaml
1919
with:
2020
cache: true
21-
solana_cli_version: 2.1.0
21+
solana_cli_version: 2.3.0
2222
node_version: 20.18.0
2323
cargo_profile: debug
2424
anchor_binary_name: anchor-binary

bench/BINARY_SIZE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1414
1515
## [Unreleased]
1616

17-
Solana version: 2.1.0
17+
Solana version: 2.3.0
1818

19-
| Program | Binary Size | - |
20-
| ------- | ----------- | --- |
21-
| bench | 1,041,928 | - |
19+
| Program | Binary Size | - |
20+
| ------- | ----------- | ---------------------- |
21+
| bench | 1,126,840 | 🔴 **+84,912 (8.15%)** |
2222

2323
### Notable changes
2424

25+
- Upgrade to Solana `2.3.0`. This upgrade increased the binary size by 8.15% (84912 bytes) ([#3967](https://github.com/solana-foundation/anchor/pull/3967)).
26+
2527
---
2628

2729
## [0.31.1]

bench/COMPUTE_UNITS.md

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -14,97 +14,97 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1414
1515
## [Unreleased]
1616

17-
Solana version: 2.1.0
17+
Solana version: 2.3.0
1818

19-
| Instruction | Compute Units | - |
20-
| --------------------------- | ------------- | --------------------- |
21-
| accountInfo1 | 571 | - |
22-
| accountInfo2 | 895 | - |
23-
| accountInfo4 | 1,553 | - |
24-
| accountInfo8 | 2,923 | - |
25-
| accountEmptyInit1 | 4,829 | 🟢 **-254 (5.00%)** |
26-
| accountEmpty1 | 645 | - |
27-
| accountEmptyInit2 | 8,793 | 🟢 **-508 (5.46%)** |
28-
| accountEmpty2 | 1,007 | - |
29-
| accountEmptyInit4 | 16,748 | 🟢 **-1,016 (5.72%)** |
30-
| accountEmpty4 | 1,724 | - |
31-
| accountEmptyInit8 | 32,691 | 🟢 **-2,032 (5.85%)** |
32-
| accountEmpty8 | 3,163 | - |
33-
| accountSizedInit1 | 4,938 | 🟢 **-254 (4.89%)** |
34-
| accountSized1 | 693 | - |
35-
| accountSizedInit2 | 8,981 | 🟢 **-508 (5.35%)** |
36-
| accountSized2 | 1,075 | - |
37-
| accountSizedInit4 | 17,154 | 🟢 **-1,016 (5.59%)** |
38-
| accountSized4 | 1,848 | - |
39-
| accountSizedInit8 | 33,401 | 🟢 **-2,032 (5.73%)** |
40-
| accountSized8 | 3,387 | - |
41-
| accountUnsizedInit1 | 5,051 | 🟢 **-254 (4.79%)** |
42-
| accountUnsized1 | 746 | - |
43-
| accountUnsizedInit2 | 9,251 | 🟢 **-508 (5.21%)** |
44-
| accountUnsized2 | 1,163 | - |
45-
| accountUnsizedInit4 | 17,587 | 🟢 **-1,016 (5.46%)** |
46-
| accountUnsized4 | 2,002 | - |
47-
| accountUnsizedInit8 | 33,961 | 🟢 **-2,032 (5.65%)** |
48-
| accountUnsized8 | 3,673 | - |
49-
| boxedAccountEmptyInit1 | 4,921 | 🟢 **-254 (4.91%)** |
50-
| boxedAccountEmpty1 | 734 | - |
51-
| boxedAccountEmptyInit2 | 8,906 | 🟢 **-508 (5.40%)** |
52-
| boxedAccountEmpty2 | 1,116 | - |
53-
| boxedAccountEmptyInit4 | 16,902 | 🟢 **-1,016 (5.67%)** |
54-
| boxedAccountEmpty4 | 1,872 | - |
55-
| boxedAccountEmptyInit8 | 32,921 | 🟢 **-2,032 (5.81%)** |
56-
| boxedAccountEmpty8 | 3,401 | - |
57-
| boxedAccountSizedInit1 | 5,017 | 🟢 **-254 (4.82%)** |
58-
| boxedAccountSized1 | 783 | - |
59-
| boxedAccountSizedInit2 | 9,075 | 🟢 **-508 (5.30%)** |
60-
| boxedAccountSized2 | 1,190 | - |
61-
| boxedAccountSizedInit4 | 17,214 | 🟢 **-1,016 (5.57%)** |
62-
| boxedAccountSized4 | 1,996 | - |
63-
| boxedAccountSizedInit8 | 33,521 | 🟢 **-2,032 (5.72%)** |
64-
| boxedAccountSized8 | 3,628 | - |
65-
| boxedAccountUnsizedInit1 | 5,117 | 🟢 **-254 (4.73%)** |
66-
| boxedAccountUnsized1 | 836 | - |
67-
| boxedAccountUnsizedInit2 | 9,251 | 🟢 **-508 (5.21%)** |
68-
| boxedAccountUnsized2 | 1,270 | - |
69-
| boxedAccountUnsizedInit4 | 17,542 | 🟢 **-1,016 (5.47%)** |
70-
| boxedAccountUnsized4 | 2,132 | - |
71-
| boxedAccountUnsizedInit8 | 34,153 | 🟢 **-2,032 (5.62%)** |
72-
| boxedAccountUnsized8 | 3,881 | - |
73-
| boxedInterfaceAccountMint1 | 1,351 | - |
74-
| boxedInterfaceAccountMint2 | 2,123 | - |
75-
| boxedInterfaceAccountMint4 | 3,656 | - |
76-
| boxedInterfaceAccountMint8 | 6,738 | - |
77-
| boxedInterfaceAccountToken1 | 2,011 | - |
78-
| boxedInterfaceAccountToken2 | 3,431 | - |
79-
| boxedInterfaceAccountToken4 | 6,260 | - |
80-
| boxedInterfaceAccountToken8 | 11,934 | - |
81-
| interfaceAccountMint1 | 1,476 | - |
82-
| interfaceAccountMint2 | 2,489 | - |
83-
| interfaceAccountMint4 | 4,511 | - |
84-
| interfaceAccountMint8 | 8,550 | - |
85-
| interfaceAccountToken1 | 2,111 | - |
86-
| interfaceAccountToken2 | 3,729 | - |
87-
| interfaceAccountToken4 | 6,955 | - |
88-
| interface1 | 769 | - |
89-
| interface2 | 912 | - |
90-
| interface4 | 1,189 | - |
91-
| interface8 | 1,748 | - |
92-
| program1 | 779 | - |
93-
| program2 | 920 | - |
94-
| program4 | 1,193 | - |
95-
| program8 | 1,744 | - |
96-
| signer1 | 774 | - |
97-
| signer2 | 1,064 | - |
98-
| signer4 | 1,637 | - |
99-
| signer8 | 2,788 | - |
100-
| systemAccount1 | 796 | - |
101-
| systemAccount2 | 1,096 | - |
102-
| systemAccount4 | 1,689 | - |
103-
| systemAccount8 | 2,880 | - |
104-
| uncheckedAccount1 | 783 | - |
105-
| uncheckedAccount2 | 1,056 | - |
106-
| uncheckedAccount4 | 1,594 | - |
107-
| uncheckedAccount8 | 2,679 | - |
19+
| Instruction | Compute Units | - |
20+
| --------------------------- | ------------- | ---------------------- |
21+
| accountInfo1 | 685 | 🔴 **+114 (19.96%)** |
22+
| accountInfo2 | 1,053 | 🔴 **+158 (17.65%)** |
23+
| accountInfo4 | 1,750 | 🔴 **+197 (12.69%)** |
24+
| accountInfo8 | 3,135 | 🔴 **+212 (7.25%)** |
25+
| accountEmptyInit1 | 4,915 | 🟢 **-168 (3.31%)** |
26+
| accountEmpty1 | 774 | 🔴 **+129 (20.00%)** |
27+
| accountEmptyInit2 | 8,793 | 🟢 **-508 (5.46%)** |
28+
| accountEmpty2 | 1,174 | 🔴 **+167 (16.58%)** |
29+
| accountEmptyInit4 | 16,748 | 🟢 **-1,016 (5.72%)** |
30+
| accountEmpty4 | 1,962 | 🔴 **+238 (13.81%)** |
31+
| accountEmptyInit8 | 32,357 | 🟢 **-2,366 (6.81%)** |
32+
| accountEmpty8 | 3,548 | 🔴 **+385 (12.17%)** |
33+
| accountSizedInit1 | 5,019 | 🟢 **-173 (3.33%)** |
34+
| accountSized1 | 822 | 🔴 **+129 (18.61%)** |
35+
| accountSizedInit2 | 8,981 | 🟢 **-508 (5.35%)** |
36+
| accountSized2 | 1,240 | 🔴 **+165 (15.35%)** |
37+
| accountSizedInit4 | 17,154 | 🟢 **-1,016 (5.59%)** |
38+
| accountSized4 | 2,082 | 🔴 **+234 (12.66%)** |
39+
| accountSizedInit8 | 33,013 | 🟢 **-2,420 (6.83%)** |
40+
| accountSized8 | 3,762 | 🔴 **+375 (11.07%)** |
41+
| accountUnsizedInit1 | 5,127 | 🟢 **-178 (3.36%)** |
42+
| accountUnsized1 | 874 | 🔴 **+128 (17.16%)** |
43+
| accountUnsizedInit2 | 9,251 | 🟢 **-508 (5.21%)** |
44+
| accountUnsized2 | 1,326 | 🔴 **+163 (14.02%)** |
45+
| accountUnsizedInit4 | 17,378 | 🟢 **-1,225 (6.58%)** |
46+
| accountUnsized4 | 2,231 | 🔴 **+229 (11.44%)** |
47+
| accountUnsizedInit8 | 33,961 | 🟢 **-2,032 (5.65%)** |
48+
| accountUnsized8 | 4,035 | 🔴 **+362 (9.86%)** |
49+
| boxedAccountEmptyInit1 | 5,007 | 🟢 **-168 (3.25%)** |
50+
| boxedAccountEmpty1 | 864 | 🔴 **+130 (17.71%)** |
51+
| boxedAccountEmptyInit2 | 8,906 | 🟢 **-508 (5.40%)** |
52+
| boxedAccountEmpty2 | 1,286 | 🔴 **+170 (15.23%)** |
53+
| boxedAccountEmptyInit4 | 16,902 | 🟢 **-1,016 (5.67%)** |
54+
| boxedAccountEmpty4 | 2,115 | 🔴 **+243 (12.98%)** |
55+
| boxedAccountEmptyInit8 | 32,591 | 🟢 **-2,362 (6.76%)** |
56+
| boxedAccountEmpty8 | 3,801 | 🔴 **+400 (11.76%)** |
57+
| boxedAccountSizedInit1 | 5,103 | 🟢 **-168 (3.19%)** |
58+
| boxedAccountSized1 | 912 | 🔴 **+129 (16.48%)** |
59+
| boxedAccountSizedInit2 | 9,075 | 🟢 **-508 (5.30%)** |
60+
| boxedAccountSized2 | 1,355 | 🔴 **+165 (13.87%)** |
61+
| boxedAccountSizedInit4 | 17,214 | 🟢 **-1,016 (5.57%)** |
62+
| boxedAccountSized4 | 2,231 | 🔴 **+235 (11.77%)** |
63+
| boxedAccountSizedInit8 | 33,521 | 🟢 **-2,032 (5.72%)** |
64+
| boxedAccountSized8 | 4,007 | 🔴 **+379 (10.45%)** |
65+
| boxedAccountUnsizedInit1 | 5,202 | 🟢 **-169 (3.15%)** |
66+
| boxedAccountUnsized1 | 964 | 🔴 **+128 (15.31%)** |
67+
| boxedAccountUnsizedInit2 | 9,251 | 🟢 **-508 (5.21%)** |
68+
| boxedAccountUnsized2 | 1,434 | 🔴 **+164 (12.91%)** |
69+
| boxedAccountUnsizedInit4 | 17,542 | 🟢 **-1,016 (5.47%)** |
70+
| boxedAccountUnsized4 | 2,367 | 🔴 **+235 (11.02%)** |
71+
| boxedAccountUnsizedInit8 | 34,153 | 🟢 **-2,032 (5.62%)** |
72+
| boxedAccountUnsized8 | 4,257 | 🔴 **+376 (9.69%)** |
73+
| boxedInterfaceAccountMint1 | 1,110 | 🟢 **-241 (17.84%)** |
74+
| boxedInterfaceAccountMint2 | 1,534 | 🟢 **-589 (27.74%)** |
75+
| boxedInterfaceAccountMint4 | 2,370 | 🟢 **-1,286 (35.18%)** |
76+
| boxedInterfaceAccountMint8 | 4,064 | 🟢 **-2,674 (39.69%)** |
77+
| boxedInterfaceAccountToken1 | 1,246 | 🟢 **-765 (38.04%)** |
78+
| boxedInterfaceAccountToken2 | 1,794 | 🟢 **-1,637 (47.71%)** |
79+
| boxedInterfaceAccountToken4 | 2,878 | 🟢 **-3,382 (54.03%)** |
80+
| boxedInterfaceAccountToken8 | 5,068 | 🟢 **-6,866 (57.53%)** |
81+
| interfaceAccountMint1 | 1,126 | 🟢 **-350 (23.71%)** |
82+
| interfaceAccountMint2 | 1,562 | 🟢 **-927 (37.24%)** |
83+
| interfaceAccountMint4 | 2,432 | 🟢 **-2,079 (46.09%)** |
84+
| interfaceAccountMint8 | 4,163 | 🟢 **-4,387 (51.31%)** |
85+
| interfaceAccountToken1 | 1,268 | 🟢 **-843 (39.93%)** |
86+
| interfaceAccountToken2 | 1,849 | 🟢 **-1,880 (50.42%)** |
87+
| interfaceAccountToken4 | 2,997 | 🟢 **-3,958 (56.91%)** |
88+
| interface1 | 878 | 🔴 **+109 (14.17%)** |
89+
| interface2 | 1,023 | 🔴 **+111 (12.17%)** |
90+
| interface4 | 1,301 | 🔴 **+112 (9.42%)** |
91+
| interface8 | 1,867 | 🔴 **+119 (6.81%)** |
92+
| program1 | 890 | 🔴 **+111 (14.25%)** |
93+
| program2 | 1,035 | 🔴 **+115 (12.50%)** |
94+
| program4 | 1,313 | 🔴 **+120 (10.06%)** |
95+
| program8 | 1,879 | 🔴 **+135 (7.74%)** |
96+
| signer1 | 874 | 🔴 **+100 (12.92%)** |
97+
| signer2 | 1,173 | 🔴 **+109 (10.24%)** |
98+
| signer4 | 1,759 | 🔴 **+122 (7.45%)** |
99+
| signer8 | 2,941 | 🔴 **+153 (5.49%)** |
100+
| systemAccount1 | 911 | 🔴 **+115 (14.45%)** |
101+
| systemAccount2 | 1,235 | 🔴 **+139 (12.68%)** |
102+
| systemAccount4 | 1,871 | 🔴 **+182 (10.78%)** |
103+
| systemAccount8 | 3,153 | 🔴 **+273 (9.48%)** |
104+
| uncheckedAccount1 | 882 | 🔴 **+99 (12.64%)** |
105+
| uncheckedAccount2 | 1,162 | 🔴 **+106 (10.04%)** |
106+
| uncheckedAccount4 | 1,716 | 🔴 **+122 (7.65%)** |
107+
| uncheckedAccount8 | 2,833 | 🔴 **+154 (5.75%)** |
108108

109109
### Notable changes
110110

0 commit comments

Comments
 (0)