Skip to content

Commit 9f22396

Browse files
authored
chore: Update benchmarks
1 parent 69cf264 commit 9f22396

File tree

3 files changed

+173
-173
lines changed

3 files changed

+173
-173
lines changed

bench/BINARY_SIZE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1616

1717
Solana version: 2.3.0
1818

19-
| Program | Binary Size | - |
20-
| ------- | ----------- | ------------------------ |
21-
| bench | 996,856 | 🟢 **-129,984 (11.54%)** |
19+
| Program | Binary Size | - |
20+
| ------- | ----------- | ----------------------- |
21+
| bench | 1,024,312 | 🟢 **-102,528 (9.10%)** |
2222

2323
### Notable changes
2424

bench/COMPUTE_UNITS.md

Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -16,95 +16,95 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1616

1717
Solana version: 2.3.0
1818

19-
| Instruction | Compute Units | - |
20-
| --------------------------- | ------------- | --------------------- |
21-
| accountInfo1 | 675 | 🟢 **-10 (1.46%)** |
22-
| accountInfo2 | 1,053 | - |
23-
| accountInfo4 | 1,750 | - |
24-
| accountInfo8 | 3,180 | 🔴 **+45 (1.44%)** |
25-
| accountEmptyInit1 | 4,750 | 🟢 **-165 (3.36%)** |
26-
| accountEmpty1 | 731 | 🟢 **-43 (5.56%)** |
27-
| accountEmptyInit2 | 8,515 | 🟢 **-278 (3.16%)** |
28-
| accountEmpty2 | 1,107 | 🟢 **-67 (5.71%)** |
29-
| accountEmptyInit4 | 16,037 | 🟢 **-711 (4.25%)** |
30-
| accountEmpty4 | 1,850 | 🟢 **-112 (5.71%)** |
31-
| accountEmptyInit8 | 31,087 | 🟢 **-1,270 (3.92%)** |
32-
| accountEmpty8 | 3,343 | 🟢 **-205 (5.78%)** |
33-
| accountSizedInit1 | 4,850 | 🟢 **-169 (3.37%)** |
34-
| accountSized1 | 776 | 🟢 **-46 (5.60%)** |
35-
| accountSizedInit2 | 8,692 | 🟢 **-289 (3.22%)** |
36-
| accountSized2 | 1,171 | 🟢 **-69 (5.56%)** |
37-
| accountSizedInit4 | 16,376 | 🟢 **-778 (4.54%)** |
38-
| accountSized4 | 1,963 | 🟢 **-119 (5.72%)** |
39-
| accountSizedInit8 | 31,711 | 🟢 **-1,302 (3.94%)** |
40-
| accountSized8 | 3,547 | 🟢 **-215 (5.72%)** |
41-
| accountUnsizedInit1 | 4,959 | 🟢 **-168 (3.28%)** |
42-
| accountUnsized1 | 827 | 🟢 **-47 (5.38%)** |
43-
| accountUnsizedInit2 | 8,893 | 🟢 **-358 (3.87%)** |
44-
| accountUnsized2 | 1,254 | 🟢 **-72 (5.43%)** |
45-
| accountUnsizedInit4 | 16,728 | 🟢 **-650 (3.74%)** |
46-
| accountUnsized4 | 2,107 | 🟢 **-124 (5.56%)** |
47-
| accountUnsizedInit8 | 32,390 | 🟢 **-1,571 (4.63%)** |
48-
| accountUnsized8 | 3,811 | 🟢 **-224 (5.55%)** |
49-
| boxedAccountEmptyInit1 | 4,842 | 🟢 **-165 (3.30%)** |
50-
| boxedAccountEmpty1 | 821 | 🟢 **-43 (4.98%)** |
51-
| boxedAccountEmptyInit2 | 8,628 | 🟢 **-278 (3.12%)** |
52-
| boxedAccountEmpty2 | 1,219 | 🟢 **-67 (5.21%)** |
53-
| boxedAccountEmptyInit4 | 16,190 | 🟢 **-712 (4.21%)** |
54-
| boxedAccountEmpty4 | 2,003 | 🟢 **-112 (5.30%)** |
55-
| boxedAccountEmptyInit8 | 31,321 | 🟢 **-1,270 (3.90%)** |
56-
| boxedAccountEmpty8 | 3,595 | 🟢 **-206 (5.42%)** |
57-
| boxedAccountSizedInit1 | 4,936 | 🟢 **-167 (3.27%)** |
58-
| boxedAccountSized1 | 868 | 🟢 **-44 (4.82%)** |
59-
| boxedAccountSizedInit2 | 8,792 | 🟢 **-283 (3.12%)** |
60-
| boxedAccountSized2 | 1,286 | 🟢 **-69 (5.09%)** |
61-
| boxedAccountSizedInit4 | 16,494 | 🟢 **-720 (4.18%)** |
62-
| boxedAccountSized4 | 2,115 | 🟢 **-116 (5.20%)** |
63-
| boxedAccountSizedInit8 | 31,905 | 🟢 **-1,616 (4.82%)** |
64-
| boxedAccountSized8 | 3,792 | 🟢 **-215 (5.37%)** |
65-
| boxedAccountUnsizedInit1 | 5,035 | 🟢 **-167 (3.21%)** |
66-
| boxedAccountUnsized1 | 918 | 🟢 **-46 (4.77%)** |
67-
| boxedAccountUnsizedInit2 | 8,966 | 🟢 **-285 (3.08%)** |
68-
| boxedAccountUnsized2 | 1,363 | 🟢 **-71 (4.95%)** |
69-
| boxedAccountUnsizedInit4 | 16,818 | 🟢 **-724 (4.13%)** |
70-
| boxedAccountUnsized4 | 2,247 | 🟢 **-120 (5.07%)** |
71-
| boxedAccountUnsizedInit8 | 32,529 | 🟢 **-1,624 (4.76%)** |
72-
| boxedAccountUnsized8 | 4,035 | 🟢 **-222 (5.21%)** |
73-
| boxedInterfaceAccountMint1 | 1,066 | 🟢 **-44 (3.96%)** |
74-
| boxedInterfaceAccountMint2 | 1,467 | 🟢 **-67 (4.37%)** |
75-
| boxedInterfaceAccountMint4 | 2,260 | 🟢 **-110 (4.64%)** |
76-
| boxedInterfaceAccountMint8 | 3,864 | 🟢 **-200 (4.92%)** |
77-
| boxedInterfaceAccountToken1 | 1,204 | 🟢 **-42 (3.37%)** |
78-
| boxedInterfaceAccountToken2 | 1,731 | 🟢 **-63 (3.51%)** |
79-
| boxedInterfaceAccountToken4 | 2,776 | 🟢 **-102 (3.54%)** |
80-
| boxedInterfaceAccountToken8 | 4,884 | 🟢 **-184 (3.63%)** |
81-
| interfaceAccountMint1 | 1,080 | 🟢 **-46 (4.09%)** |
82-
| interfaceAccountMint2 | 1,495 | 🟢 **-67 (4.29%)** |
83-
| interfaceAccountMint4 | 2,318 | 🟢 **-114 (4.69%)** |
84-
| interfaceAccountMint8 | 3,961 | 🟢 **-202 (4.85%)** |
85-
| interfaceAccountToken1 | 1,224 | 🟢 **-44 (3.47%)** |
86-
| interfaceAccountToken2 | 1,785 | 🟢 **-64 (3.46%)** |
87-
| interfaceAccountToken4 | 2,891 | 🟢 **-106 (3.54%)** |
88-
| interface1 | 857 | 🟢 **-21 (2.39%)** |
89-
| interface2 | 1,002 | 🟢 **-21 (2.05%)** |
90-
| interface4 | 1,283 | 🟢 **-18 (1.38%)** |
91-
| interface8 | 1,867 | - |
92-
| program1 | 873 | 🟢 **-17 (1.91%)** |
93-
| program2 | 1,022 | 🟢 **-13 (1.26%)** |
94-
| program4 | 1,311 | 🟢 **-2 (0.15%)** |
95-
| program8 | 1,896 | 🔴 **+17 (0.90%)** |
96-
| signer1 | 863 | 🟢 **-11 (1.26%)** |
97-
| signer2 | 1,173 | - |
98-
| signer4 | 1,759 | - |
99-
| signer8 | 2,992 | 🔴 **+51 (1.73%)** |
100-
| systemAccount1 | 885 | 🟢 **-26 (2.85%)** |
101-
| systemAccount2 | 1,202 | 🟢 **-33 (2.67%)** |
102-
| systemAccount4 | 1,827 | 🟢 **-44 (2.35%)** |
103-
| systemAccount8 | 3,084 | 🟢 **-69 (2.19%)** |
104-
| uncheckedAccount1 | 870 | 🟢 **-12 (1.36%)** |
105-
| uncheckedAccount2 | 1,162 | - |
106-
| uncheckedAccount4 | 1,716 | - |
107-
| uncheckedAccount8 | 2,870 | 🔴 **+37 (1.31%)** |
19+
| Instruction | Compute Units | - |
20+
| --------------------------- | ------------- | ------------------- |
21+
| accountInfo1 | 685 | - |
22+
| accountInfo2 | 1,053 | - |
23+
| accountInfo4 | 1,750 | - |
24+
| accountInfo8 | 3,135 | - |
25+
| accountEmptyInit1 | 4,878 | 🟢 **-37 (0.75%)** |
26+
| accountEmpty1 | 774 | - |
27+
| accountEmptyInit2 | 8,755 | 🟢 **-38 (0.43%)** |
28+
| accountEmpty2 | 1,174 | - |
29+
| accountEmptyInit4 | 16,503 | 🟢 **-245 (1.46%)** |
30+
| accountEmpty4 | 1,962 | - |
31+
| accountEmptyInit8 | 32,005 | 🟢 **-352 (1.09%)** |
32+
| accountEmpty8 | 3,548 | - |
33+
| accountSizedInit1 | 4,982 | 🟢 **-37 (0.74%)** |
34+
| accountSized1 | 822 | - |
35+
| accountSizedInit2 | 8,940 | 🟢 **-41 (0.46%)** |
36+
| accountSized2 | 1,240 | - |
37+
| accountSizedInit4 | 16,858 | 🟢 **-296 (1.73%)** |
38+
| accountSized4 | 2,082 | - |
39+
| accountSizedInit8 | 32,661 | 🟢 **-352 (1.07%)** |
40+
| accountSized8 | 3,762 | - |
41+
| accountUnsizedInit1 | 5,090 | 🟢 **-37 (0.72%)** |
42+
| accountUnsized1 | 874 | - |
43+
| accountUnsizedInit2 | 9,139 | 🟢 **-112 (1.21%)** |
44+
| accountUnsized2 | 1,326 | - |
45+
| accountUnsizedInit4 | 17,206 | 🟢 **-172 (0.99%)** |
46+
| accountUnsized4 | 2,231 | - |
47+
| accountUnsizedInit8 | 33,332 | 🟢 **-629 (1.85%)** |
48+
| accountUnsized8 | 4,035 | - |
49+
| boxedAccountEmptyInit1 | 4,970 | 🟢 **-37 (0.74%)** |
50+
| boxedAccountEmpty1 | 864 | - |
51+
| boxedAccountEmptyInit2 | 8,868 | 🟢 **-38 (0.43%)** |
52+
| boxedAccountEmpty2 | 1,286 | - |
53+
| boxedAccountEmptyInit4 | 16,656 | 🟢 **-246 (1.46%)** |
54+
| boxedAccountEmpty4 | 2,115 | - |
55+
| boxedAccountEmptyInit8 | 32,239 | 🟢 **-352 (1.08%)** |
56+
| boxedAccountEmpty8 | 3,801 | - |
57+
| boxedAccountSizedInit1 | 5,066 | 🟢 **-37 (0.73%)** |
58+
| boxedAccountSized1 | 912 | - |
59+
| boxedAccountSizedInit2 | 9,036 | 🟢 **-39 (0.43%)** |
60+
| boxedAccountSized2 | 1,355 | - |
61+
| boxedAccountSizedInit4 | 16,968 | 🟢 **-246 (1.43%)** |
62+
| boxedAccountSized4 | 2,231 | - |
63+
| boxedAccountSizedInit8 | 32,839 | 🟢 **-682 (2.03%)** |
64+
| boxedAccountSized8 | 4,007 | - |
65+
| boxedAccountUnsizedInit1 | 5,165 | 🟢 **-37 (0.71%)** |
66+
| boxedAccountUnsized1 | 964 | - |
67+
| boxedAccountUnsizedInit2 | 9,210 | 🟢 **-41 (0.44%)** |
68+
| boxedAccountUnsized2 | 1,434 | - |
69+
| boxedAccountUnsizedInit4 | 17,292 | 🟢 **-250 (1.43%)** |
70+
| boxedAccountUnsized4 | 2,367 | - |
71+
| boxedAccountUnsizedInit8 | 33,463 | 🟢 **-690 (2.02%)** |
72+
| boxedAccountUnsized8 | 4,257 | - |
73+
| boxedInterfaceAccountMint1 | 1,110 | - |
74+
| boxedInterfaceAccountMint2 | 1,534 | - |
75+
| boxedInterfaceAccountMint4 | 2,370 | - |
76+
| boxedInterfaceAccountMint8 | 4,064 | - |
77+
| boxedInterfaceAccountToken1 | 1,246 | - |
78+
| boxedInterfaceAccountToken2 | 1,794 | - |
79+
| boxedInterfaceAccountToken4 | 2,878 | - |
80+
| boxedInterfaceAccountToken8 | 5,068 | - |
81+
| interfaceAccountMint1 | 1,126 | - |
82+
| interfaceAccountMint2 | 1,562 | - |
83+
| interfaceAccountMint4 | 2,432 | - |
84+
| interfaceAccountMint8 | 4,163 | - |
85+
| interfaceAccountToken1 | 1,268 | - |
86+
| interfaceAccountToken2 | 1,849 | - |
87+
| interfaceAccountToken4 | 2,997 | - |
88+
| interface1 | 878 | - |
89+
| interface2 | 1,023 | - |
90+
| interface4 | 1,301 | - |
91+
| interface8 | 1,867 | - |
92+
| program1 | 898 | 🔴 **+8 (0.90%)** |
93+
| program2 | 1,051 | 🔴 **+16 (1.55%)** |
94+
| program4 | 1,345 | 🔴 **+32 (2.44%)** |
95+
| program8 | 1,943 | 🔴 **+64 (3.41%)** |
96+
| signer1 | 874 | - |
97+
| signer2 | 1,173 | - |
98+
| signer4 | 1,759 | - |
99+
| signer8 | 2,941 | - |
100+
| systemAccount1 | 911 | - |
101+
| systemAccount2 | 1,235 | - |
102+
| systemAccount4 | 1,871 | - |
103+
| systemAccount8 | 3,153 | - |
104+
| uncheckedAccount1 | 882 | - |
105+
| uncheckedAccount2 | 1,162 | - |
106+
| uncheckedAccount4 | 1,716 | - |
107+
| uncheckedAccount8 | 2,833 | - |
108108

109109
### Notable changes
110110

tests/bench/bench.json

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,96 +1677,96 @@
16771677
"solanaVersion": "2.3.0",
16781678
"result": {
16791679
"binarySize": {
1680-
"bench": 996856
1680+
"bench": 1024312
16811681
},
16821682
"computeUnits": {
1683-
"accountInfo1": 675,
1683+
"accountInfo1": 685,
16841684
"accountInfo2": 1053,
16851685
"accountInfo4": 1750,
1686-
"accountInfo8": 3180,
1687-
"accountEmptyInit1": 4750,
1688-
"accountEmpty1": 731,
1689-
"accountEmptyInit2": 8515,
1690-
"accountEmpty2": 1107,
1691-
"accountEmptyInit4": 16037,
1692-
"accountEmpty4": 1850,
1693-
"accountEmptyInit8": 31087,
1694-
"accountEmpty8": 3343,
1695-
"accountSizedInit1": 4850,
1696-
"accountSized1": 776,
1697-
"accountSizedInit2": 8692,
1698-
"accountSized2": 1171,
1699-
"accountSizedInit4": 16376,
1700-
"accountSized4": 1963,
1701-
"accountSizedInit8": 31711,
1702-
"accountSized8": 3547,
1703-
"accountUnsizedInit1": 4959,
1704-
"accountUnsized1": 827,
1705-
"accountUnsizedInit2": 8893,
1706-
"accountUnsized2": 1254,
1707-
"accountUnsizedInit4": 16728,
1708-
"accountUnsized4": 2107,
1709-
"accountUnsizedInit8": 32390,
1710-
"accountUnsized8": 3811,
1711-
"boxedAccountEmptyInit1": 4842,
1712-
"boxedAccountEmpty1": 821,
1713-
"boxedAccountEmptyInit2": 8628,
1714-
"boxedAccountEmpty2": 1219,
1715-
"boxedAccountEmptyInit4": 16190,
1716-
"boxedAccountEmpty4": 2003,
1717-
"boxedAccountEmptyInit8": 31321,
1718-
"boxedAccountEmpty8": 3595,
1719-
"boxedAccountSizedInit1": 4936,
1720-
"boxedAccountSized1": 868,
1721-
"boxedAccountSizedInit2": 8792,
1722-
"boxedAccountSized2": 1286,
1723-
"boxedAccountSizedInit4": 16494,
1724-
"boxedAccountSized4": 2115,
1725-
"boxedAccountSizedInit8": 31905,
1726-
"boxedAccountSized8": 3792,
1727-
"boxedAccountUnsizedInit1": 5035,
1728-
"boxedAccountUnsized1": 918,
1729-
"boxedAccountUnsizedInit2": 8966,
1730-
"boxedAccountUnsized2": 1363,
1731-
"boxedAccountUnsizedInit4": 16818,
1732-
"boxedAccountUnsized4": 2247,
1733-
"boxedAccountUnsizedInit8": 32529,
1734-
"boxedAccountUnsized8": 4035,
1735-
"boxedInterfaceAccountMint1": 1066,
1736-
"boxedInterfaceAccountMint2": 1467,
1737-
"boxedInterfaceAccountMint4": 2260,
1738-
"boxedInterfaceAccountMint8": 3864,
1739-
"boxedInterfaceAccountToken1": 1204,
1740-
"boxedInterfaceAccountToken2": 1731,
1741-
"boxedInterfaceAccountToken4": 2776,
1742-
"boxedInterfaceAccountToken8": 4884,
1743-
"interfaceAccountMint1": 1080,
1744-
"interfaceAccountMint2": 1495,
1745-
"interfaceAccountMint4": 2318,
1746-
"interfaceAccountMint8": 3961,
1747-
"interfaceAccountToken1": 1224,
1748-
"interfaceAccountToken2": 1785,
1749-
"interfaceAccountToken4": 2891,
1750-
"interface1": 857,
1751-
"interface2": 1002,
1752-
"interface4": 1283,
1686+
"accountInfo8": 3135,
1687+
"accountEmptyInit1": 4878,
1688+
"accountEmpty1": 774,
1689+
"accountEmptyInit2": 8755,
1690+
"accountEmpty2": 1174,
1691+
"accountEmptyInit4": 16503,
1692+
"accountEmpty4": 1962,
1693+
"accountEmptyInit8": 32005,
1694+
"accountEmpty8": 3548,
1695+
"accountSizedInit1": 4982,
1696+
"accountSized1": 822,
1697+
"accountSizedInit2": 8940,
1698+
"accountSized2": 1240,
1699+
"accountSizedInit4": 16858,
1700+
"accountSized4": 2082,
1701+
"accountSizedInit8": 32661,
1702+
"accountSized8": 3762,
1703+
"accountUnsizedInit1": 5090,
1704+
"accountUnsized1": 874,
1705+
"accountUnsizedInit2": 9139,
1706+
"accountUnsized2": 1326,
1707+
"accountUnsizedInit4": 17206,
1708+
"accountUnsized4": 2231,
1709+
"accountUnsizedInit8": 33332,
1710+
"accountUnsized8": 4035,
1711+
"boxedAccountEmptyInit1": 4970,
1712+
"boxedAccountEmpty1": 864,
1713+
"boxedAccountEmptyInit2": 8868,
1714+
"boxedAccountEmpty2": 1286,
1715+
"boxedAccountEmptyInit4": 16656,
1716+
"boxedAccountEmpty4": 2115,
1717+
"boxedAccountEmptyInit8": 32239,
1718+
"boxedAccountEmpty8": 3801,
1719+
"boxedAccountSizedInit1": 5066,
1720+
"boxedAccountSized1": 912,
1721+
"boxedAccountSizedInit2": 9036,
1722+
"boxedAccountSized2": 1355,
1723+
"boxedAccountSizedInit4": 16968,
1724+
"boxedAccountSized4": 2231,
1725+
"boxedAccountSizedInit8": 32839,
1726+
"boxedAccountSized8": 4007,
1727+
"boxedAccountUnsizedInit1": 5165,
1728+
"boxedAccountUnsized1": 964,
1729+
"boxedAccountUnsizedInit2": 9210,
1730+
"boxedAccountUnsized2": 1434,
1731+
"boxedAccountUnsizedInit4": 17292,
1732+
"boxedAccountUnsized4": 2367,
1733+
"boxedAccountUnsizedInit8": 33463,
1734+
"boxedAccountUnsized8": 4257,
1735+
"boxedInterfaceAccountMint1": 1110,
1736+
"boxedInterfaceAccountMint2": 1534,
1737+
"boxedInterfaceAccountMint4": 2370,
1738+
"boxedInterfaceAccountMint8": 4064,
1739+
"boxedInterfaceAccountToken1": 1246,
1740+
"boxedInterfaceAccountToken2": 1794,
1741+
"boxedInterfaceAccountToken4": 2878,
1742+
"boxedInterfaceAccountToken8": 5068,
1743+
"interfaceAccountMint1": 1126,
1744+
"interfaceAccountMint2": 1562,
1745+
"interfaceAccountMint4": 2432,
1746+
"interfaceAccountMint8": 4163,
1747+
"interfaceAccountToken1": 1268,
1748+
"interfaceAccountToken2": 1849,
1749+
"interfaceAccountToken4": 2997,
1750+
"interface1": 878,
1751+
"interface2": 1023,
1752+
"interface4": 1301,
17531753
"interface8": 1867,
1754-
"program1": 873,
1755-
"program2": 1022,
1756-
"program4": 1311,
1757-
"program8": 1896,
1758-
"signer1": 863,
1754+
"program1": 898,
1755+
"program2": 1051,
1756+
"program4": 1345,
1757+
"program8": 1943,
1758+
"signer1": 874,
17591759
"signer2": 1173,
17601760
"signer4": 1759,
1761-
"signer8": 2992,
1762-
"systemAccount1": 885,
1763-
"systemAccount2": 1202,
1764-
"systemAccount4": 1827,
1765-
"systemAccount8": 3084,
1766-
"uncheckedAccount1": 870,
1761+
"signer8": 2941,
1762+
"systemAccount1": 911,
1763+
"systemAccount2": 1235,
1764+
"systemAccount4": 1871,
1765+
"systemAccount8": 3153,
1766+
"uncheckedAccount1": 882,
17671767
"uncheckedAccount2": 1162,
17681768
"uncheckedAccount4": 1716,
1769-
"uncheckedAccount8": 2870
1769+
"uncheckedAccount8": 2833
17701770
},
17711771
"stackMemory": {
17721772
"account_info1": 46,

0 commit comments

Comments
 (0)