diff --git a/bench/BINARY_SIZE.md b/bench/BINARY_SIZE.md index c69ad0b298..c0debdc7d6 100644 --- a/bench/BINARY_SIZE.md +++ b/bench/BINARY_SIZE.md @@ -16,9 +16,9 @@ The programs and their tests are located in [/tests/bench](https://github.com/co Solana version: 2.3.0 -| Program | Binary Size | - | -| ------- | ----------- | ------------------------ | -| bench | 996,856 | 🟢 **-129,984 (11.54%)** | +| Program | Binary Size | - | +| ------- | ----------- | ----------------------- | +| bench | 1,024,312 | 🟢 **-102,528 (9.10%)** | ### Notable changes diff --git a/bench/COMPUTE_UNITS.md b/bench/COMPUTE_UNITS.md index 143d2d496d..5dbf55cfc9 100644 --- a/bench/COMPUTE_UNITS.md +++ b/bench/COMPUTE_UNITS.md @@ -16,95 +16,95 @@ The programs and their tests are located in [/tests/bench](https://github.com/co Solana version: 2.3.0 -| Instruction | Compute Units | - | -| --------------------------- | ------------- | --------------------- | -| accountInfo1 | 675 | 🟢 **-10 (1.46%)** | -| accountInfo2 | 1,053 | - | -| accountInfo4 | 1,750 | - | -| accountInfo8 | 3,180 | 🔴 **+45 (1.44%)** | -| accountEmptyInit1 | 4,750 | 🟢 **-165 (3.36%)** | -| accountEmpty1 | 731 | 🟢 **-43 (5.56%)** | -| accountEmptyInit2 | 8,515 | 🟢 **-278 (3.16%)** | -| accountEmpty2 | 1,107 | 🟢 **-67 (5.71%)** | -| accountEmptyInit4 | 16,037 | 🟢 **-711 (4.25%)** | -| accountEmpty4 | 1,850 | 🟢 **-112 (5.71%)** | -| accountEmptyInit8 | 31,087 | 🟢 **-1,270 (3.92%)** | -| accountEmpty8 | 3,343 | 🟢 **-205 (5.78%)** | -| accountSizedInit1 | 4,850 | 🟢 **-169 (3.37%)** | -| accountSized1 | 776 | 🟢 **-46 (5.60%)** | -| accountSizedInit2 | 8,692 | 🟢 **-289 (3.22%)** | -| accountSized2 | 1,171 | 🟢 **-69 (5.56%)** | -| accountSizedInit4 | 16,376 | 🟢 **-778 (4.54%)** | -| accountSized4 | 1,963 | 🟢 **-119 (5.72%)** | -| accountSizedInit8 | 31,711 | 🟢 **-1,302 (3.94%)** | -| accountSized8 | 3,547 | 🟢 **-215 (5.72%)** | -| accountUnsizedInit1 | 4,959 | 🟢 **-168 (3.28%)** | -| accountUnsized1 | 827 | 🟢 **-47 (5.38%)** | -| accountUnsizedInit2 | 8,893 | 🟢 **-358 (3.87%)** | -| accountUnsized2 | 1,254 | 🟢 **-72 (5.43%)** | -| accountUnsizedInit4 | 16,728 | 🟢 **-650 (3.74%)** | -| accountUnsized4 | 2,107 | 🟢 **-124 (5.56%)** | -| accountUnsizedInit8 | 32,390 | 🟢 **-1,571 (4.63%)** | -| accountUnsized8 | 3,811 | 🟢 **-224 (5.55%)** | -| boxedAccountEmptyInit1 | 4,842 | 🟢 **-165 (3.30%)** | -| boxedAccountEmpty1 | 821 | 🟢 **-43 (4.98%)** | -| boxedAccountEmptyInit2 | 8,628 | 🟢 **-278 (3.12%)** | -| boxedAccountEmpty2 | 1,219 | 🟢 **-67 (5.21%)** | -| boxedAccountEmptyInit4 | 16,190 | 🟢 **-712 (4.21%)** | -| boxedAccountEmpty4 | 2,003 | 🟢 **-112 (5.30%)** | -| boxedAccountEmptyInit8 | 31,321 | 🟢 **-1,270 (3.90%)** | -| boxedAccountEmpty8 | 3,595 | 🟢 **-206 (5.42%)** | -| boxedAccountSizedInit1 | 4,936 | 🟢 **-167 (3.27%)** | -| boxedAccountSized1 | 868 | 🟢 **-44 (4.82%)** | -| boxedAccountSizedInit2 | 8,792 | 🟢 **-283 (3.12%)** | -| boxedAccountSized2 | 1,286 | 🟢 **-69 (5.09%)** | -| boxedAccountSizedInit4 | 16,494 | 🟢 **-720 (4.18%)** | -| boxedAccountSized4 | 2,115 | 🟢 **-116 (5.20%)** | -| boxedAccountSizedInit8 | 31,905 | 🟢 **-1,616 (4.82%)** | -| boxedAccountSized8 | 3,792 | 🟢 **-215 (5.37%)** | -| boxedAccountUnsizedInit1 | 5,035 | 🟢 **-167 (3.21%)** | -| boxedAccountUnsized1 | 918 | 🟢 **-46 (4.77%)** | -| boxedAccountUnsizedInit2 | 8,966 | 🟢 **-285 (3.08%)** | -| boxedAccountUnsized2 | 1,363 | 🟢 **-71 (4.95%)** | -| boxedAccountUnsizedInit4 | 16,818 | 🟢 **-724 (4.13%)** | -| boxedAccountUnsized4 | 2,247 | 🟢 **-120 (5.07%)** | -| boxedAccountUnsizedInit8 | 32,529 | 🟢 **-1,624 (4.76%)** | -| boxedAccountUnsized8 | 4,035 | 🟢 **-222 (5.21%)** | -| boxedInterfaceAccountMint1 | 1,066 | 🟢 **-44 (3.96%)** | -| boxedInterfaceAccountMint2 | 1,467 | 🟢 **-67 (4.37%)** | -| boxedInterfaceAccountMint4 | 2,260 | 🟢 **-110 (4.64%)** | -| boxedInterfaceAccountMint8 | 3,864 | 🟢 **-200 (4.92%)** | -| boxedInterfaceAccountToken1 | 1,204 | 🟢 **-42 (3.37%)** | -| boxedInterfaceAccountToken2 | 1,731 | 🟢 **-63 (3.51%)** | -| boxedInterfaceAccountToken4 | 2,776 | 🟢 **-102 (3.54%)** | -| boxedInterfaceAccountToken8 | 4,884 | 🟢 **-184 (3.63%)** | -| interfaceAccountMint1 | 1,080 | 🟢 **-46 (4.09%)** | -| interfaceAccountMint2 | 1,495 | 🟢 **-67 (4.29%)** | -| interfaceAccountMint4 | 2,318 | 🟢 **-114 (4.69%)** | -| interfaceAccountMint8 | 3,961 | 🟢 **-202 (4.85%)** | -| interfaceAccountToken1 | 1,224 | 🟢 **-44 (3.47%)** | -| interfaceAccountToken2 | 1,785 | 🟢 **-64 (3.46%)** | -| interfaceAccountToken4 | 2,891 | 🟢 **-106 (3.54%)** | -| interface1 | 857 | 🟢 **-21 (2.39%)** | -| interface2 | 1,002 | 🟢 **-21 (2.05%)** | -| interface4 | 1,283 | 🟢 **-18 (1.38%)** | -| interface8 | 1,867 | - | -| program1 | 873 | 🟢 **-17 (1.91%)** | -| program2 | 1,022 | 🟢 **-13 (1.26%)** | -| program4 | 1,311 | 🟢 **-2 (0.15%)** | -| program8 | 1,896 | 🔴 **+17 (0.90%)** | -| signer1 | 863 | 🟢 **-11 (1.26%)** | -| signer2 | 1,173 | - | -| signer4 | 1,759 | - | -| signer8 | 2,992 | 🔴 **+51 (1.73%)** | -| systemAccount1 | 885 | 🟢 **-26 (2.85%)** | -| systemAccount2 | 1,202 | 🟢 **-33 (2.67%)** | -| systemAccount4 | 1,827 | 🟢 **-44 (2.35%)** | -| systemAccount8 | 3,084 | 🟢 **-69 (2.19%)** | -| uncheckedAccount1 | 870 | 🟢 **-12 (1.36%)** | -| uncheckedAccount2 | 1,162 | - | -| uncheckedAccount4 | 1,716 | - | -| uncheckedAccount8 | 2,870 | 🔴 **+37 (1.31%)** | +| Instruction | Compute Units | - | +| --------------------------- | ------------- | ------------------- | +| accountInfo1 | 685 | - | +| accountInfo2 | 1,053 | - | +| accountInfo4 | 1,750 | - | +| accountInfo8 | 3,135 | - | +| accountEmptyInit1 | 4,878 | 🟢 **-37 (0.75%)** | +| accountEmpty1 | 774 | - | +| accountEmptyInit2 | 8,755 | 🟢 **-38 (0.43%)** | +| accountEmpty2 | 1,174 | - | +| accountEmptyInit4 | 16,503 | 🟢 **-245 (1.46%)** | +| accountEmpty4 | 1,962 | - | +| accountEmptyInit8 | 32,005 | 🟢 **-352 (1.09%)** | +| accountEmpty8 | 3,548 | - | +| accountSizedInit1 | 4,982 | 🟢 **-37 (0.74%)** | +| accountSized1 | 822 | - | +| accountSizedInit2 | 8,940 | 🟢 **-41 (0.46%)** | +| accountSized2 | 1,240 | - | +| accountSizedInit4 | 16,858 | 🟢 **-296 (1.73%)** | +| accountSized4 | 2,082 | - | +| accountSizedInit8 | 32,661 | 🟢 **-352 (1.07%)** | +| accountSized8 | 3,762 | - | +| accountUnsizedInit1 | 5,090 | 🟢 **-37 (0.72%)** | +| accountUnsized1 | 874 | - | +| accountUnsizedInit2 | 9,139 | 🟢 **-112 (1.21%)** | +| accountUnsized2 | 1,326 | - | +| accountUnsizedInit4 | 17,206 | 🟢 **-172 (0.99%)** | +| accountUnsized4 | 2,231 | - | +| accountUnsizedInit8 | 33,332 | 🟢 **-629 (1.85%)** | +| accountUnsized8 | 4,035 | - | +| boxedAccountEmptyInit1 | 4,970 | 🟢 **-37 (0.74%)** | +| boxedAccountEmpty1 | 864 | - | +| boxedAccountEmptyInit2 | 8,868 | 🟢 **-38 (0.43%)** | +| boxedAccountEmpty2 | 1,286 | - | +| boxedAccountEmptyInit4 | 16,656 | 🟢 **-246 (1.46%)** | +| boxedAccountEmpty4 | 2,115 | - | +| boxedAccountEmptyInit8 | 32,239 | 🟢 **-352 (1.08%)** | +| boxedAccountEmpty8 | 3,801 | - | +| boxedAccountSizedInit1 | 5,066 | 🟢 **-37 (0.73%)** | +| boxedAccountSized1 | 912 | - | +| boxedAccountSizedInit2 | 9,036 | 🟢 **-39 (0.43%)** | +| boxedAccountSized2 | 1,355 | - | +| boxedAccountSizedInit4 | 16,968 | 🟢 **-246 (1.43%)** | +| boxedAccountSized4 | 2,231 | - | +| boxedAccountSizedInit8 | 32,839 | 🟢 **-682 (2.03%)** | +| boxedAccountSized8 | 4,007 | - | +| boxedAccountUnsizedInit1 | 5,165 | 🟢 **-37 (0.71%)** | +| boxedAccountUnsized1 | 964 | - | +| boxedAccountUnsizedInit2 | 9,210 | 🟢 **-41 (0.44%)** | +| boxedAccountUnsized2 | 1,434 | - | +| boxedAccountUnsizedInit4 | 17,292 | 🟢 **-250 (1.43%)** | +| boxedAccountUnsized4 | 2,367 | - | +| boxedAccountUnsizedInit8 | 33,463 | 🟢 **-690 (2.02%)** | +| boxedAccountUnsized8 | 4,257 | - | +| boxedInterfaceAccountMint1 | 1,110 | - | +| boxedInterfaceAccountMint2 | 1,534 | - | +| boxedInterfaceAccountMint4 | 2,370 | - | +| boxedInterfaceAccountMint8 | 4,064 | - | +| boxedInterfaceAccountToken1 | 1,246 | - | +| boxedInterfaceAccountToken2 | 1,794 | - | +| boxedInterfaceAccountToken4 | 2,878 | - | +| boxedInterfaceAccountToken8 | 5,068 | - | +| interfaceAccountMint1 | 1,126 | - | +| interfaceAccountMint2 | 1,562 | - | +| interfaceAccountMint4 | 2,432 | - | +| interfaceAccountMint8 | 4,163 | - | +| interfaceAccountToken1 | 1,268 | - | +| interfaceAccountToken2 | 1,849 | - | +| interfaceAccountToken4 | 2,997 | - | +| interface1 | 878 | - | +| interface2 | 1,023 | - | +| interface4 | 1,301 | - | +| interface8 | 1,867 | - | +| program1 | 898 | 🔴 **+8 (0.90%)** | +| program2 | 1,051 | 🔴 **+16 (1.55%)** | +| program4 | 1,345 | 🔴 **+32 (2.44%)** | +| program8 | 1,943 | 🔴 **+64 (3.41%)** | +| signer1 | 874 | - | +| signer2 | 1,173 | - | +| signer4 | 1,759 | - | +| signer8 | 2,941 | - | +| systemAccount1 | 911 | - | +| systemAccount2 | 1,235 | - | +| systemAccount4 | 1,871 | - | +| systemAccount8 | 3,153 | - | +| uncheckedAccount1 | 882 | - | +| uncheckedAccount2 | 1,162 | - | +| uncheckedAccount4 | 1,716 | - | +| uncheckedAccount8 | 2,833 | - | ### Notable changes diff --git a/tests/bench/bench.json b/tests/bench/bench.json index fef4059d17..66bcf0f4d3 100644 --- a/tests/bench/bench.json +++ b/tests/bench/bench.json @@ -1677,96 +1677,96 @@ "solanaVersion": "2.3.0", "result": { "binarySize": { - "bench": 996856 + "bench": 1024312 }, "computeUnits": { - "accountInfo1": 675, + "accountInfo1": 685, "accountInfo2": 1053, "accountInfo4": 1750, - "accountInfo8": 3180, - "accountEmptyInit1": 4750, - "accountEmpty1": 731, - "accountEmptyInit2": 8515, - "accountEmpty2": 1107, - "accountEmptyInit4": 16037, - "accountEmpty4": 1850, - "accountEmptyInit8": 31087, - "accountEmpty8": 3343, - "accountSizedInit1": 4850, - "accountSized1": 776, - "accountSizedInit2": 8692, - "accountSized2": 1171, - "accountSizedInit4": 16376, - "accountSized4": 1963, - "accountSizedInit8": 31711, - "accountSized8": 3547, - "accountUnsizedInit1": 4959, - "accountUnsized1": 827, - "accountUnsizedInit2": 8893, - "accountUnsized2": 1254, - "accountUnsizedInit4": 16728, - "accountUnsized4": 2107, - "accountUnsizedInit8": 32390, - "accountUnsized8": 3811, - "boxedAccountEmptyInit1": 4842, - "boxedAccountEmpty1": 821, - "boxedAccountEmptyInit2": 8628, - "boxedAccountEmpty2": 1219, - "boxedAccountEmptyInit4": 16190, - "boxedAccountEmpty4": 2003, - "boxedAccountEmptyInit8": 31321, - "boxedAccountEmpty8": 3595, - "boxedAccountSizedInit1": 4936, - "boxedAccountSized1": 868, - "boxedAccountSizedInit2": 8792, - "boxedAccountSized2": 1286, - "boxedAccountSizedInit4": 16494, - "boxedAccountSized4": 2115, - "boxedAccountSizedInit8": 31905, - "boxedAccountSized8": 3792, - "boxedAccountUnsizedInit1": 5035, - "boxedAccountUnsized1": 918, - "boxedAccountUnsizedInit2": 8966, - "boxedAccountUnsized2": 1363, - "boxedAccountUnsizedInit4": 16818, - "boxedAccountUnsized4": 2247, - "boxedAccountUnsizedInit8": 32529, - "boxedAccountUnsized8": 4035, - "boxedInterfaceAccountMint1": 1066, - "boxedInterfaceAccountMint2": 1467, - "boxedInterfaceAccountMint4": 2260, - "boxedInterfaceAccountMint8": 3864, - "boxedInterfaceAccountToken1": 1204, - "boxedInterfaceAccountToken2": 1731, - "boxedInterfaceAccountToken4": 2776, - "boxedInterfaceAccountToken8": 4884, - "interfaceAccountMint1": 1080, - "interfaceAccountMint2": 1495, - "interfaceAccountMint4": 2318, - "interfaceAccountMint8": 3961, - "interfaceAccountToken1": 1224, - "interfaceAccountToken2": 1785, - "interfaceAccountToken4": 2891, - "interface1": 857, - "interface2": 1002, - "interface4": 1283, + "accountInfo8": 3135, + "accountEmptyInit1": 4878, + "accountEmpty1": 774, + "accountEmptyInit2": 8755, + "accountEmpty2": 1174, + "accountEmptyInit4": 16503, + "accountEmpty4": 1962, + "accountEmptyInit8": 32005, + "accountEmpty8": 3548, + "accountSizedInit1": 4982, + "accountSized1": 822, + "accountSizedInit2": 8940, + "accountSized2": 1240, + "accountSizedInit4": 16858, + "accountSized4": 2082, + "accountSizedInit8": 32661, + "accountSized8": 3762, + "accountUnsizedInit1": 5090, + "accountUnsized1": 874, + "accountUnsizedInit2": 9139, + "accountUnsized2": 1326, + "accountUnsizedInit4": 17206, + "accountUnsized4": 2231, + "accountUnsizedInit8": 33332, + "accountUnsized8": 4035, + "boxedAccountEmptyInit1": 4970, + "boxedAccountEmpty1": 864, + "boxedAccountEmptyInit2": 8868, + "boxedAccountEmpty2": 1286, + "boxedAccountEmptyInit4": 16656, + "boxedAccountEmpty4": 2115, + "boxedAccountEmptyInit8": 32239, + "boxedAccountEmpty8": 3801, + "boxedAccountSizedInit1": 5066, + "boxedAccountSized1": 912, + "boxedAccountSizedInit2": 9036, + "boxedAccountSized2": 1355, + "boxedAccountSizedInit4": 16968, + "boxedAccountSized4": 2231, + "boxedAccountSizedInit8": 32839, + "boxedAccountSized8": 4007, + "boxedAccountUnsizedInit1": 5165, + "boxedAccountUnsized1": 964, + "boxedAccountUnsizedInit2": 9210, + "boxedAccountUnsized2": 1434, + "boxedAccountUnsizedInit4": 17292, + "boxedAccountUnsized4": 2367, + "boxedAccountUnsizedInit8": 33463, + "boxedAccountUnsized8": 4257, + "boxedInterfaceAccountMint1": 1110, + "boxedInterfaceAccountMint2": 1534, + "boxedInterfaceAccountMint4": 2370, + "boxedInterfaceAccountMint8": 4064, + "boxedInterfaceAccountToken1": 1246, + "boxedInterfaceAccountToken2": 1794, + "boxedInterfaceAccountToken4": 2878, + "boxedInterfaceAccountToken8": 5068, + "interfaceAccountMint1": 1126, + "interfaceAccountMint2": 1562, + "interfaceAccountMint4": 2432, + "interfaceAccountMint8": 4163, + "interfaceAccountToken1": 1268, + "interfaceAccountToken2": 1849, + "interfaceAccountToken4": 2997, + "interface1": 878, + "interface2": 1023, + "interface4": 1301, "interface8": 1867, - "program1": 873, - "program2": 1022, - "program4": 1311, - "program8": 1896, - "signer1": 863, + "program1": 898, + "program2": 1051, + "program4": 1345, + "program8": 1943, + "signer1": 874, "signer2": 1173, "signer4": 1759, - "signer8": 2992, - "systemAccount1": 885, - "systemAccount2": 1202, - "systemAccount4": 1827, - "systemAccount8": 3084, - "uncheckedAccount1": 870, + "signer8": 2941, + "systemAccount1": 911, + "systemAccount2": 1235, + "systemAccount4": 1871, + "systemAccount8": 3153, + "uncheckedAccount1": 882, "uncheckedAccount2": 1162, "uncheckedAccount4": 1716, - "uncheckedAccount8": 2870 + "uncheckedAccount8": 2833 }, "stackMemory": { "account_info1": 46,