From a10bb626547ded74c09f7d398245971234924e0f Mon Sep 17 00:00:00 2001 From: swaroop-osec Date: Mon, 24 Nov 2025 20:17:11 +0530 Subject: [PATCH] chore: Update benchmarks --- bench/BINARY_SIZE.md | 26 +- bench/COMPUTE_UNITS.md | 534 ++++++++++++++++++++--------------------- tests/bench/bench.json | 168 ++++++------- 3 files changed, 364 insertions(+), 364 deletions(-) diff --git a/bench/BINARY_SIZE.md b/bench/BINARY_SIZE.md index a61c119f9c..d0ee5eaa57 100644 --- a/bench/BINARY_SIZE.md +++ b/bench/BINARY_SIZE.md @@ -28,8 +28,8 @@ Solana version: 2.3.0 Solana version: 2.3.0 -| Program | Binary Size | - | -| ------- | ----------- | ----------------------- | +| Program | Binary Size | - | +| ------- | ----------- | ------------------------ | | bench | 1,126,840 | 🔴 **+181,272 (19.17%)** | ### Notable changes @@ -42,8 +42,8 @@ Solana version: 2.3.0 Solana version: 2.1.0 -| Program | Binary Size | - | -| ------- | ----------- | --------------------- | +| Program | Binary Size | - | +| ------- | ----------- | ---------------------- | | bench | 945,568 | 🟢 **-96,360 (9.25%)** | ### Notable changes @@ -66,8 +66,8 @@ Solana version: 2.1.0 Solana version: 2.1.0 -| Program | Binary Size | - | -| ------- | ----------- | ----------------------- | +| Program | Binary Size | - | +| ------- | ----------- | ------------------------ | | bench | 1,041,928 | 🔴 **+250,920 (31.72%)** | ### Notable changes @@ -93,8 +93,8 @@ Solana version: 1.18.17 Solana version: 1.18.8 -| Program | Binary Size | - | -| ------- | ----------- | --------------------- | +| Program | Binary Size | - | +| ------- | ----------- | ---------------------- | | bench | 791,008 | 🔴 **+47,952 (6.45%)** | ### Notable changes @@ -107,8 +107,8 @@ Solana version: 1.18.8 Solana version: 1.17.0 -| Program | Binary Size | +/- | -| ------- | ----------- | ----------------------- | +| Program | Binary Size | +/- | +| ------- | ----------- | ------------------------ | | bench | 743,056 | 🟢 **-417,904 (36.00%)** | ### Notable changes @@ -123,8 +123,8 @@ Solana version: 1.17.0 Solana version: 1.16.0 -| Program | Binary Size | +/- | -| ------- | ----------- | --------------------- | +| Program | Binary Size | +/- | +| ------- | ----------- | ---------------------- | | bench | 1,160,960 | 🔴 **+23,272 (2.05%)** | ### Notable changes @@ -141,4 +141,4 @@ Solana version: 1.14.16 | ------- | ----------- | --- | | bench | 1,137,688 | N/A | ---- \ No newline at end of file +--- diff --git a/bench/COMPUTE_UNITS.md b/bench/COMPUTE_UNITS.md index 56c3a6f8ae..319f58017a 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 | 685 | - | -| accountInfo2 | 1,053 | - | -| accountInfo4 | 1,750 | - | -| accountInfo8 | 3,135 | - | -| accountEmptyInit1 | 4,915 | - | -| accountEmpty1 | 774 | - | -| accountEmptyInit2 | 8,793 | - | -| accountEmpty2 | 1,174 | - | -| accountEmptyInit4 | 16,495 | 🟢 **-253 (1.51%)** | -| accountEmpty4 | 1,962 | - | -| accountEmptyInit8 | 31,997 | 🟢 **-360 (1.11%)** | -| accountEmpty8 | 3,548 | - | -| accountSizedInit1 | 5,019 | - | -| accountSized1 | 813 | 🟢 **-9 (1.09%)** | -| accountSizedInit2 | 8,981 | - | -| accountSized2 | 1,222 | 🟢 **-18 (1.45%)** | -| accountSizedInit4 | 16,850 | 🟢 **-304 (1.77%)** | -| accountSized4 | 2,046 | 🟢 **-36 (1.73%)** | -| accountSizedInit8 | 32,653 | 🟢 **-360 (1.09%)** | -| accountSized8 | 3,690 | 🟢 **-72 (1.91%)** | -| accountUnsizedInit1 | 5,127 | - | -| accountUnsized1 | 853 | 🟢 **-21 (2.40%)** | -| accountUnsizedInit2 | 9,131 | 🟢 **-120 (1.30%)** | -| accountUnsized2 | 1,284 | 🟢 **-42 (3.17%)** | -| accountUnsizedInit4 | 17,198 | 🟢 **-180 (1.04%)** | -| accountUnsized4 | 2,147 | 🟢 **-84 (3.77%)** | -| accountUnsizedInit8 | 33,324 | 🟢 **-637 (1.88%)** | -| accountUnsized8 | 3,867 | 🟢 **-168 (4.16%)** | -| boxedAccountEmptyInit1 | 5,007 | - | -| boxedAccountEmpty1 | 864 | - | -| boxedAccountEmptyInit2 | 8,906 | - | -| boxedAccountEmpty2 | 1,286 | - | -| boxedAccountEmptyInit4 | 16,648 | 🟢 **-254 (1.50%)** | -| boxedAccountEmpty4 | 2,115 | - | -| boxedAccountEmptyInit8 | 32,231 | 🟢 **-360 (1.10%)** | -| boxedAccountEmpty8 | 3,801 | - | -| boxedAccountSizedInit1 | 5,103 | - | -| boxedAccountSized1 | 912 | - | -| boxedAccountSizedInit2 | 9,075 | - | -| boxedAccountSized2 | 1,337 | 🟢 **-18 (1.33%)** | -| boxedAccountSizedInit4 | 16,960 | 🟢 **-254 (1.48%)** | -| boxedAccountSized4 | 2,195 | 🟢 **-36 (1.61%)** | -| boxedAccountSizedInit8 | 32,831 | 🟢 **-690 (2.06%)** | -| boxedAccountSized8 | 3,935 | 🟢 **-72 (1.80%)** | -| boxedAccountUnsizedInit1 | 5,202 | - | -| boxedAccountUnsized1 | 943 | 🟢 **-21 (2.18%)** | -| boxedAccountUnsizedInit2 | 9,251 | - | -| boxedAccountUnsized2 | 1,392 | 🟢 **-42 (2.93%)** | -| boxedAccountUnsizedInit4 | 17,284 | 🟢 **-258 (1.47%)** | -| boxedAccountUnsized4 | 2,283 | 🟢 **-84 (3.55%)** | -| boxedAccountUnsizedInit8 | 33,455 | 🟢 **-698 (2.04%)** | -| boxedAccountUnsized8 | 4,089 | 🟢 **-168 (3.95%)** | -| 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 | 890 | - | -| program2 | 1,035 | - | -| program4 | 1,313 | - | -| program8 | 1,879 | - | -| 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 | - | +| Instruction | Compute Units | - | +| --------------------------- | ------------- | -------------------- | +| accountInfo1 | 719 | 🔴 **+34 (4.96%)** | +| accountInfo2 | 1,124 | 🔴 **+71 (6.74%)** | +| accountInfo4 | 1,895 | 🔴 **+145 (8.29%)** | +| accountInfo8 | 3,428 | 🔴 **+293 (9.35%)** | +| accountEmptyInit1 | 4,996 | 🔴 **+81 (1.65%)** | +| accountEmpty1 | 803 | 🔴 **+29 (3.75%)** | +| accountEmptyInit2 | 8,919 | 🔴 **+126 (1.43%)** | +| accountEmpty2 | 1,235 | 🔴 **+61 (5.20%)** | +| accountEmptyInit4 | 16,759 | 🔴 **+11 (0.07%)** | +| accountEmpty4 | 2,087 | 🔴 **+125 (6.37%)** | +| accountEmptyInit8 | 32,446 | 🔴 **+89 (0.28%)** | +| accountEmpty8 | 3,801 | 🔴 **+253 (7.13%)** | +| accountSizedInit1 | 5,097 | 🔴 **+78 (1.55%)** | +| accountSized1 | 842 | 🔴 **+20 (2.43%)** | +| accountSizedInit2 | 9,098 | 🔴 **+117 (1.30%)** | +| accountSized2 | 1,283 | 🔴 **+43 (3.47%)** | +| accountSizedInit4 | 17,102 | 🟢 **-52 (0.30%)** | +| accountSized4 | 2,171 | 🔴 **+89 (4.27%)** | +| accountSizedInit8 | 33,078 | 🔴 **+65 (0.20%)** | +| accountSized8 | 3,943 | 🔴 **+181 (4.81%)** | +| accountUnsizedInit1 | 5,199 | 🔴 **+72 (1.40%)** | +| accountUnsized1 | 882 | 🔴 **+8 (0.92%)** | +| accountUnsizedInit2 | 9,285 | 🔴 **+34 (0.37%)** | +| accountUnsized2 | 1,345 | 🔴 **+19 (1.43%)** | +| accountUnsizedInit4 | 17,426 | 🔴 **+48 (0.28%)** | +| accountUnsized4 | 2,272 | 🔴 **+41 (1.84%)** | +| accountUnsizedInit8 | 33,700 | 🟢 **-261 (0.77%)** | +| accountUnsized8 | 4,120 | 🔴 **+85 (2.11%)** | +| boxedAccountEmptyInit1 | 5,088 | 🔴 **+81 (1.62%)** | +| boxedAccountEmpty1 | 893 | 🔴 **+29 (3.36%)** | +| boxedAccountEmptyInit2 | 9,032 | 🔴 **+126 (1.41%)** | +| boxedAccountEmpty2 | 1,347 | 🔴 **+61 (4.74%)** | +| boxedAccountEmptyInit4 | 16,912 | 🔴 **+10 (0.06%)** | +| boxedAccountEmpty4 | 2,240 | 🔴 **+125 (5.91%)** | +| boxedAccountEmptyInit8 | 32,679 | 🔴 **+88 (0.27%)** | +| boxedAccountEmpty8 | 4,054 | 🔴 **+253 (6.66%)** | +| boxedAccountSizedInit1 | 5,181 | 🔴 **+78 (1.53%)** | +| boxedAccountSized1 | 932 | 🔴 **+20 (2.19%)** | +| boxedAccountSizedInit2 | 9,194 | 🔴 **+119 (1.31%)** | +| boxedAccountSized2 | 1,398 | 🔴 **+43 (3.17%)** | +| boxedAccountSizedInit4 | 17,212 | 🟢 **-2 (0.01%)** | +| boxedAccountSized4 | 2,320 | 🔴 **+89 (3.99%)** | +| boxedAccountSizedInit8 | 33,255 | 🟢 **-266 (0.79%)** | +| boxedAccountSized8 | 4,188 | 🔴 **+181 (4.52%)** | +| boxedAccountUnsizedInit1 | 5,274 | 🔴 **+72 (1.38%)** | +| boxedAccountUnsized1 | 972 | 🔴 **+8 (0.83%)** | +| boxedAccountUnsizedInit2 | 9,356 | 🔴 **+105 (1.14%)** | +| boxedAccountUnsized2 | 1,453 | 🔴 **+19 (1.32%)** | +| boxedAccountUnsizedInit4 | 17,512 | 🟢 **-30 (0.17%)** | +| boxedAccountUnsized4 | 2,408 | 🔴 **+41 (1.73%)** | +| boxedAccountUnsizedInit8 | 33,831 | 🟢 **-322 (0.94%)** | +| boxedAccountUnsized8 | 4,342 | 🔴 **+85 (2.00%)** | +| boxedInterfaceAccountMint1 | 1,153 | 🔴 **+43 (3.87%)** | +| boxedInterfaceAccountMint2 | 1,584 | 🔴 **+50 (3.26%)** | +| boxedInterfaceAccountMint4 | 2,434 | 🔴 **+64 (2.70%)** | +| boxedInterfaceAccountMint8 | 4,156 | 🔴 **+92 (2.26%)** | +| boxedInterfaceAccountToken1 | 1,278 | 🔴 **+32 (2.57%)** | +| boxedInterfaceAccountToken2 | 1,822 | 🔴 **+28 (1.56%)** | +| boxedInterfaceAccountToken4 | 2,878 | - | +| boxedInterfaceAccountToken8 | 5,068 | - | +| interfaceAccountMint1 | 1,169 | 🔴 **+43 (3.82%)** | +| interfaceAccountMint2 | 1,612 | 🔴 **+50 (3.20%)** | +| interfaceAccountMint4 | 2,496 | 🔴 **+64 (2.63%)** | +| interfaceAccountMint8 | 4,255 | 🔴 **+92 (2.21%)** | +| interfaceAccountToken1 | 1,300 | 🔴 **+32 (2.52%)** | +| interfaceAccountToken2 | 1,877 | 🔴 **+28 (1.51%)** | +| interfaceAccountToken4 | 2,997 | - | +| interface1 | 912 | 🔴 **+34 (3.87%)** | +| interface2 | 1,055 | 🔴 **+32 (3.13%)** | +| interface4 | 1,329 | 🔴 **+28 (2.15%)** | +| interface8 | 1,887 | 🔴 **+20 (1.07%)** | +| program1 | 932 | 🔴 **+42 (4.72%)** | +| program2 | 1,083 | 🔴 **+48 (4.64%)** | +| program4 | 1,373 | 🔴 **+60 (4.57%)** | +| program8 | 1,963 | 🔴 **+84 (4.47%)** | +| signer1 | 908 | 🔴 **+34 (3.89%)** | +| signer2 | 1,244 | 🔴 **+71 (6.05%)** | +| signer4 | 1,904 | 🔴 **+145 (8.24%)** | +| signer8 | 3,234 | 🔴 **+293 (9.96%)** | +| systemAccount1 | 945 | 🔴 **+34 (3.73%)** | +| systemAccount2 | 1,306 | 🔴 **+71 (5.75%)** | +| systemAccount4 | 2,016 | 🔴 **+145 (7.75%)** | +| systemAccount8 | 3,446 | 🔴 **+293 (9.29%)** | +| uncheckedAccount1 | 916 | 🔴 **+34 (3.85%)** | +| uncheckedAccount2 | 1,233 | 🔴 **+71 (6.11%)** | +| uncheckedAccount4 | 1,861 | 🔴 **+145 (8.45%)** | +| uncheckedAccount8 | 3,126 | 🔴 **+293 (10.34%)** | ### Notable changes @@ -114,95 +114,95 @@ Solana version: 2.3.0 Solana version: 2.3.0 -| Instruction | Compute Units | - | -|------------------------------|---------------|------------------------| -| accountInfo1 | 685 | 🔴 **+114 (19.96%)** | -| accountInfo2 | 1,053 | 🔴 **+158 (17.65%)** | -| accountInfo4 | 1,750 | 🔴 **+197 (12.69%)** | -| accountInfo8 | 3,135 | 🔴 **+212 (7.25%)** | -| accountEmptyInit1 | 4,915 | 🔴 **+131 (2.74%)** | -| accountEmpty1 | 774 | 🔴 **+129 (20.00%)** | -| accountEmptyInit2 | 8,793 | 🔴 **+124 (1.43%)** | -| accountEmpty2 | 1,174 | 🔴 **+167 (16.58%)** | -| accountEmptyInit4 | 16,748 | 🔴 **+248 (1.50%)** | -| accountEmpty4 | 1,962 | 🔴 **+238 (13.81%)** | -| accountEmptyInit8 | 32,357 | 🔴 **+26 (0.08%)** | -| accountEmpty8 | 3,548 | 🔴 **+385 (12.17%)** | -| accountSizedInit1 | 5,019 | 🔴 **+126 (2.58%)** | -| accountSized1 | 822 | 🔴 **+129 (18.61%)** | -| accountSizedInit2 | 8,981 | 🔴 **+124 (1.40%)** | -| accountSized2 | 1,240 | 🔴 **+165 (15.35%)** | -| accountSizedInit4 | 17,154 | 🔴 **+248 (1.47%)** | -| accountSized4 | 2,082 | 🔴 **+234 (12.66%)** | -| accountSizedInit8 | 33,013 | 🟢 **-28 (0.08%)** | -| accountSized8 | 3,762 | 🔴 **+375 (11.07%)** | -| accountUnsizedInit1 | 5,127 | 🔴 **+121 (2.42%)** | -| accountUnsized1 | 874 | 🔴 **+128 (17.16%)** | -| accountUnsizedInit2 | 9,251 | 🔴 **+124 (1.36%)** | -| accountUnsized2 | 1,326 | 🔴 **+163 (14.02%)** | -| accountUnsizedInit4 | 17,378 | 🟢 **-29 (0.17%)** | -| accountUnsized4 | 2,231 | 🔴 **+229 (11.44%)** | -| accountUnsizedInit8 | 33,961 | 🔴 **+496 (1.48%)** | -| accountUnsized8 | 4,035 | 🔴 **+362 (9.86%)** | -| boxedAccountEmptyInit1 | 5,007 | 🔴 **+131 (2.69%)** | -| boxedAccountEmpty1 | 864 | 🔴 **+130 (17.71%)** | -| boxedAccountEmptyInit2 | 8,906 | 🔴 **+123 (1.40%)** | -| boxedAccountEmpty2 | 1,286 | 🔴 **+170 (15.23%)** | -| boxedAccountEmptyInit4 | 16,902 | 🔴 **+247 (1.48%)** | -| boxedAccountEmpty4 | 2,115 | 🔴 **+243 (12.98%)** | -| boxedAccountEmptyInit8 | 32,591 | 🔴 **+30 (0.09%)** | -| boxedAccountEmpty8 | 3,801 | 🔴 **+400 (11.76%)** | -| boxedAccountSizedInit1 | 5,103 | 🔴 **+131 (2.63%)** | -| boxedAccountSized1 | 912 | 🔴 **+129 (16.48%)** | -| boxedAccountSizedInit2 | 9,075 | 🔴 **+123 (1.37%)** | -| boxedAccountSized2 | 1,355 | 🔴 **+165 (13.87%)** | -| boxedAccountSizedInit4 | 17,214 | 🔴 **+247 (1.46%)** | -| boxedAccountSized4 | 2,231 | 🔴 **+235 (11.77%)** | -| boxedAccountSizedInit8 | 33,521 | 🔴 **+360 (1.09%)** | -| boxedAccountSized8 | 4,007 | 🔴 **+379 (10.45%)** | -| boxedAccountUnsizedInit1 | 5,202 | 🔴 **+130 (2.56%)** | -| boxedAccountUnsized1 | 964 | 🔴 **+128 (15.31%)** | -| boxedAccountUnsizedInit2 | 9,251 | 🔴 **+123 (1.35%)** | -| boxedAccountUnsized2 | 1,434 | 🔴 **+164 (12.91%)** | -| boxedAccountUnsizedInit4 | 17,542 | 🔴 **+247 (1.43%)** | -| boxedAccountUnsized4 | 2,367 | 🔴 **+235 (11.02%)** | -| boxedAccountUnsizedInit8 | 34,153 | 🔴 **+360 (1.07%)** | -| boxedAccountUnsized8 | 4,257 | 🔴 **+376 (9.69%)** | -| boxedInterfaceAccountMint1 | 1,110 | 🟢 **-241 (17.84%)** | -| boxedInterfaceAccountMint2 | 1,534 | 🟢 **-589 (27.74%)** | -| boxedInterfaceAccountMint4 | 2,370 | 🟢 **-1,286 (35.18%)** | -| boxedInterfaceAccountMint8 | 4,064 | 🟢 **-2,674 (39.69%)** | -| boxedInterfaceAccountToken1 | 1,246 | 🟢 **-765 (38.04%)** | -| boxedInterfaceAccountToken2 | 1,794 | 🟢 **-1,637 (47.71%)** | -| boxedInterfaceAccountToken4 | 2,878 | 🟢 **-3,382 (54.03%)** | -| boxedInterfaceAccountToken8 | 5,068 | 🟢 **-6,866 (57.53%)** | -| interfaceAccountMint1 | 1,126 | 🟢 **-350 (23.71%)** | -| interfaceAccountMint2 | 1,562 | 🟢 **-927 (37.24%)** | -| interfaceAccountMint4 | 2,432 | 🟢 **-2,079 (46.09%)** | -| interfaceAccountMint8 | 4,163 | 🟢 **-4,387 (51.31%)** | -| interfaceAccountToken1 | 1,268 | 🟢 **-843 (39.93%)** | -| interfaceAccountToken2 | 1,849 | 🟢 **-1,880 (50.42%)** | -| interfaceAccountToken4 | 2,997 | 🟢 **-3,958 (56.91%)** | -| interface1 | 878 | 🔴 **+109 (14.17%)** | -| interface2 | 1,023 | 🔴 **+111 (12.17%)** | -| interface4 | 1,301 | 🔴 **+112 (9.42%)** | -| interface8 | 1,867 | 🔴 **+119 (6.81%)** | -| program1 | 890 | 🔴 **+111 (14.25%)** | -| program2 | 1,035 | 🔴 **+115 (12.50%)** | -| program4 | 1,313 | 🔴 **+120 (10.06%)** | -| program8 | 1,879 | 🔴 **+135 (7.74%)** | -| signer1 | 874 | 🔴 **+100 (12.92%)** | -| signer2 | 1,173 | 🔴 **+109 (10.24%)** | -| signer4 | 1,759 | 🔴 **+122 (7.45%)** | -| signer8 | 2,941 | 🔴 **+153 (5.49%)** | -| systemAccount1 | 911 | 🔴 **+115 (14.45%)** | -| systemAccount2 | 1,235 | 🔴 **+139 (12.68%)** | -| systemAccount4 | 1,871 | 🔴 **+182 (10.78%)** | -| systemAccount8 | 3,153 | 🔴 **+273 (9.48%)** | -| uncheckedAccount1 | 882 | 🔴 **+99 (12.64%)** | -| uncheckedAccount2 | 1,162 | 🔴 **+106 (10.04%)** | -| uncheckedAccount4 | 1,716 | 🔴 **+122 (7.65%)** | -| uncheckedAccount8 | 2,833 | 🔴 **+154 (5.75%)** | +| Instruction | Compute Units | - | +| --------------------------- | ------------- | ---------------------- | +| accountInfo1 | 685 | 🔴 **+114 (19.96%)** | +| accountInfo2 | 1,053 | 🔴 **+158 (17.65%)** | +| accountInfo4 | 1,750 | 🔴 **+197 (12.69%)** | +| accountInfo8 | 3,135 | 🔴 **+212 (7.25%)** | +| accountEmptyInit1 | 4,915 | 🔴 **+131 (2.74%)** | +| accountEmpty1 | 774 | 🔴 **+129 (20.00%)** | +| accountEmptyInit2 | 8,793 | 🔴 **+124 (1.43%)** | +| accountEmpty2 | 1,174 | 🔴 **+167 (16.58%)** | +| accountEmptyInit4 | 16,748 | 🔴 **+248 (1.50%)** | +| accountEmpty4 | 1,962 | 🔴 **+238 (13.81%)** | +| accountEmptyInit8 | 32,357 | 🔴 **+26 (0.08%)** | +| accountEmpty8 | 3,548 | 🔴 **+385 (12.17%)** | +| accountSizedInit1 | 5,019 | 🔴 **+126 (2.58%)** | +| accountSized1 | 822 | 🔴 **+129 (18.61%)** | +| accountSizedInit2 | 8,981 | 🔴 **+124 (1.40%)** | +| accountSized2 | 1,240 | 🔴 **+165 (15.35%)** | +| accountSizedInit4 | 17,154 | 🔴 **+248 (1.47%)** | +| accountSized4 | 2,082 | 🔴 **+234 (12.66%)** | +| accountSizedInit8 | 33,013 | 🟢 **-28 (0.08%)** | +| accountSized8 | 3,762 | 🔴 **+375 (11.07%)** | +| accountUnsizedInit1 | 5,127 | 🔴 **+121 (2.42%)** | +| accountUnsized1 | 874 | 🔴 **+128 (17.16%)** | +| accountUnsizedInit2 | 9,251 | 🔴 **+124 (1.36%)** | +| accountUnsized2 | 1,326 | 🔴 **+163 (14.02%)** | +| accountUnsizedInit4 | 17,378 | 🟢 **-29 (0.17%)** | +| accountUnsized4 | 2,231 | 🔴 **+229 (11.44%)** | +| accountUnsizedInit8 | 33,961 | 🔴 **+496 (1.48%)** | +| accountUnsized8 | 4,035 | 🔴 **+362 (9.86%)** | +| boxedAccountEmptyInit1 | 5,007 | 🔴 **+131 (2.69%)** | +| boxedAccountEmpty1 | 864 | 🔴 **+130 (17.71%)** | +| boxedAccountEmptyInit2 | 8,906 | 🔴 **+123 (1.40%)** | +| boxedAccountEmpty2 | 1,286 | 🔴 **+170 (15.23%)** | +| boxedAccountEmptyInit4 | 16,902 | 🔴 **+247 (1.48%)** | +| boxedAccountEmpty4 | 2,115 | 🔴 **+243 (12.98%)** | +| boxedAccountEmptyInit8 | 32,591 | 🔴 **+30 (0.09%)** | +| boxedAccountEmpty8 | 3,801 | 🔴 **+400 (11.76%)** | +| boxedAccountSizedInit1 | 5,103 | 🔴 **+131 (2.63%)** | +| boxedAccountSized1 | 912 | 🔴 **+129 (16.48%)** | +| boxedAccountSizedInit2 | 9,075 | 🔴 **+123 (1.37%)** | +| boxedAccountSized2 | 1,355 | 🔴 **+165 (13.87%)** | +| boxedAccountSizedInit4 | 17,214 | 🔴 **+247 (1.46%)** | +| boxedAccountSized4 | 2,231 | 🔴 **+235 (11.77%)** | +| boxedAccountSizedInit8 | 33,521 | 🔴 **+360 (1.09%)** | +| boxedAccountSized8 | 4,007 | 🔴 **+379 (10.45%)** | +| boxedAccountUnsizedInit1 | 5,202 | 🔴 **+130 (2.56%)** | +| boxedAccountUnsized1 | 964 | 🔴 **+128 (15.31%)** | +| boxedAccountUnsizedInit2 | 9,251 | 🔴 **+123 (1.35%)** | +| boxedAccountUnsized2 | 1,434 | 🔴 **+164 (12.91%)** | +| boxedAccountUnsizedInit4 | 17,542 | 🔴 **+247 (1.43%)** | +| boxedAccountUnsized4 | 2,367 | 🔴 **+235 (11.02%)** | +| boxedAccountUnsizedInit8 | 34,153 | 🔴 **+360 (1.07%)** | +| boxedAccountUnsized8 | 4,257 | 🔴 **+376 (9.69%)** | +| boxedInterfaceAccountMint1 | 1,110 | 🟢 **-241 (17.84%)** | +| boxedInterfaceAccountMint2 | 1,534 | 🟢 **-589 (27.74%)** | +| boxedInterfaceAccountMint4 | 2,370 | 🟢 **-1,286 (35.18%)** | +| boxedInterfaceAccountMint8 | 4,064 | 🟢 **-2,674 (39.69%)** | +| boxedInterfaceAccountToken1 | 1,246 | 🟢 **-765 (38.04%)** | +| boxedInterfaceAccountToken2 | 1,794 | 🟢 **-1,637 (47.71%)** | +| boxedInterfaceAccountToken4 | 2,878 | 🟢 **-3,382 (54.03%)** | +| boxedInterfaceAccountToken8 | 5,068 | 🟢 **-6,866 (57.53%)** | +| interfaceAccountMint1 | 1,126 | 🟢 **-350 (23.71%)** | +| interfaceAccountMint2 | 1,562 | 🟢 **-927 (37.24%)** | +| interfaceAccountMint4 | 2,432 | 🟢 **-2,079 (46.09%)** | +| interfaceAccountMint8 | 4,163 | 🟢 **-4,387 (51.31%)** | +| interfaceAccountToken1 | 1,268 | 🟢 **-843 (39.93%)** | +| interfaceAccountToken2 | 1,849 | 🟢 **-1,880 (50.42%)** | +| interfaceAccountToken4 | 2,997 | 🟢 **-3,958 (56.91%)** | +| interface1 | 878 | 🔴 **+109 (14.17%)** | +| interface2 | 1,023 | 🔴 **+111 (12.17%)** | +| interface4 | 1,301 | 🔴 **+112 (9.42%)** | +| interface8 | 1,867 | 🔴 **+119 (6.81%)** | +| program1 | 890 | 🔴 **+111 (14.25%)** | +| program2 | 1,035 | 🔴 **+101 (10.81%)** | +| program4 | 1,313 | 🔴 **+92 (7.53%)** | +| program8 | 1,879 | 🔴 **+79 (4.39%)** | +| signer1 | 874 | 🔴 **+100 (12.92%)** | +| signer2 | 1,173 | 🔴 **+109 (10.24%)** | +| signer4 | 1,759 | 🔴 **+122 (7.45%)** | +| signer8 | 2,941 | 🔴 **+153 (5.49%)** | +| systemAccount1 | 911 | 🔴 **+115 (14.45%)** | +| systemAccount2 | 1,235 | 🔴 **+139 (12.68%)** | +| systemAccount4 | 1,871 | 🔴 **+182 (10.78%)** | +| systemAccount8 | 3,153 | 🔴 **+273 (9.48%)** | +| uncheckedAccount1 | 882 | 🔴 **+99 (12.64%)** | +| uncheckedAccount2 | 1,162 | 🔴 **+106 (10.04%)** | +| uncheckedAccount4 | 1,716 | 🔴 **+122 (7.65%)** | +| uncheckedAccount8 | 2,833 | 🔴 **+154 (5.75%)** | ### Notable changes @@ -212,95 +212,95 @@ Solana version: 2.3.0 Solana version: 2.1.0 -| Instruction | Compute Units | - | -|------------------------------|---------------|-----------------------| -| accountInfo1 | 571 | - | -| accountInfo2 | 895 | - | -| accountInfo4 | 1,553 | - | -| accountInfo8 | 2,923 | - | -| accountEmptyInit1 | 4,784 | 🟢 **-299 (5.88%)** | -| accountEmpty1 | 645 | - | -| accountEmptyInit2 | 8,669 | 🟢 **-632 (6.79%)** | -| accountEmpty2 | 1,007 | - | -| accountEmptyInit4 | 16,500 | 🟢 **-1,264 (7.12%)** | -| accountEmpty4 | 1,724 | - | -| accountEmptyInit8 | 32,331 | 🟢 **-2,392 (6.89%)** | -| accountEmpty8 | 3,163 | - | -| accountSizedInit1 | 4,893 | 🟢 **-299 (5.76%)** | -| accountSized1 | 693 | - | -| accountSizedInit2 | 8,857 | 🟢 **-632 (6.66%)** | -| accountSized2 | 1,075 | - | -| accountSizedInit4 | 16,906 | 🟢 **-1,264 (6.96%)** | -| accountSized4 | 1,848 | - | -| accountSizedInit8 | 33,041 | 🟢 **-2,392 (6.75%)** | -| accountSized8 | 3,387 | - | -| accountUnsizedInit1 | 5,006 | 🟢 **-299 (5.64%)** | -| accountUnsized1 | 746 | - | -| accountUnsizedInit2 | 9,127 | 🟢 **-632 (6.48%)** | -| accountUnsized2 | 1,163 | - | -| accountUnsizedInit4 | 17,407 | 🟢 **-1,196 (6.43%)** | -| accountUnsized4 | 2,002 | - | -| accountUnsizedInit8 | 33,465 | 🟢 **-2,528 (7.02%)** | -| accountUnsized8 | 3,673 | - | -| boxedAccountEmptyInit1 | 4,876 | 🟢 **-299 (5.78%)** | -| boxedAccountEmpty1 | 734 | - | -| boxedAccountEmptyInit2 | 8,783 | 🟢 **-631 (6.70%)** | -| boxedAccountEmpty2 | 1,116 | - | -| boxedAccountEmptyInit4 | 16,655 | 🟢 **-1,263 (7.05%)** | -| boxedAccountEmpty4 | 1,872 | - | -| boxedAccountEmptyInit8 | 32,561 | 🟢 **-2,392 (6.84%)** | -| boxedAccountEmpty8 | 3,401 | - | -| boxedAccountSizedInit1 | 4,972 | 🟢 **-299 (5.67%)** | -| boxedAccountSized1 | 783 | - | -| boxedAccountSizedInit2 | 8,952 | 🟢 **-631 (6.58%)** | -| boxedAccountSized2 | 1,190 | - | -| boxedAccountSizedInit4 | 16,967 | 🟢 **-1,263 (6.93%)** | -| boxedAccountSized4 | 1,996 | - | -| boxedAccountSizedInit8 | 33,161 | 🟢 **-2,392 (6.73%)** | -| boxedAccountSized8 | 3,628 | - | -| boxedAccountUnsizedInit1 | 5,072 | 🟢 **-299 (5.57%)** | -| boxedAccountUnsized1 | 836 | - | -| boxedAccountUnsizedInit2 | 9,128 | 🟢 **-631 (6.47%)** | -| boxedAccountUnsized2 | 1,270 | - | -| boxedAccountUnsizedInit4 | 17,295 | 🟢 **-1,263 (6.81%)** | -| boxedAccountUnsized4 | 2,132 | - | -| boxedAccountUnsizedInit8 | 33,793 | 🟢 **-2,392 (6.61%)** | -| boxedAccountUnsized8 | 3,881 | - | -| boxedInterfaceAccountMint1 | 1,351 | - | -| boxedInterfaceAccountMint2 | 2,123 | - | -| boxedInterfaceAccountMint4 | 3,656 | - | -| boxedInterfaceAccountMint8 | 6,738 | - | -| boxedInterfaceAccountToken1 | 2,011 | - | -| boxedInterfaceAccountToken2 | 3,431 | - | -| boxedInterfaceAccountToken4 | 6,260 | - | -| boxedInterfaceAccountToken8 | 11,934 | - | -| interfaceAccountMint1 | 1,476 | - | -| interfaceAccountMint2 | 2,489 | - | -| interfaceAccountMint4 | 4,511 | - | -| interfaceAccountMint8 | 8,550 | - | -| interfaceAccountToken1 | 2,111 | - | -| interfaceAccountToken2 | 3,729 | - | -| interfaceAccountToken4 | 6,955 | - | -| interface1 | 769 | - | -| interface2 | 912 | - | -| interface4 | 1,189 | - | -| interface8 | 1,748 | - | -| program1 | 779 | - | -| program2 | 934 | 🔴 **+14 (1.52%)** | -| program4 | 1,221 | 🔴 **+28 (2.35%)** | -| program8 | 1,800 | 🔴 **+56 (3.21%)** | -| signer1 | 774 | - | -| signer2 | 1,064 | - | -| signer4 | 1,637 | - | -| signer8 | 2,788 | - | -| systemAccount1 | 796 | - | -| systemAccount2 | 1,096 | - | -| systemAccount4 | 1,689 | - | -| systemAccount8 | 2,880 | - | -| uncheckedAccount1 | 783 | - | -| uncheckedAccount2 | 1,056 | - | -| uncheckedAccount4 | 1,594 | - | -| uncheckedAccount8 | 2,679 | - | +| Instruction | Compute Units | - | +| --------------------------- | ------------- | --------------------- | +| accountInfo1 | 571 | - | +| accountInfo2 | 895 | - | +| accountInfo4 | 1,553 | - | +| accountInfo8 | 2,923 | - | +| accountEmptyInit1 | 4,784 | 🟢 **-299 (5.88%)** | +| accountEmpty1 | 645 | - | +| accountEmptyInit2 | 8,669 | 🟢 **-632 (6.79%)** | +| accountEmpty2 | 1,007 | - | +| accountEmptyInit4 | 16,500 | 🟢 **-1,264 (7.12%)** | +| accountEmpty4 | 1,724 | - | +| accountEmptyInit8 | 32,331 | 🟢 **-2,392 (6.89%)** | +| accountEmpty8 | 3,163 | - | +| accountSizedInit1 | 4,893 | 🟢 **-299 (5.76%)** | +| accountSized1 | 693 | - | +| accountSizedInit2 | 8,857 | 🟢 **-632 (6.66%)** | +| accountSized2 | 1,075 | - | +| accountSizedInit4 | 16,906 | 🟢 **-1,264 (6.96%)** | +| accountSized4 | 1,848 | - | +| accountSizedInit8 | 33,041 | 🟢 **-2,392 (6.75%)** | +| accountSized8 | 3,387 | - | +| accountUnsizedInit1 | 5,006 | 🟢 **-299 (5.64%)** | +| accountUnsized1 | 746 | - | +| accountUnsizedInit2 | 9,127 | 🟢 **-632 (6.48%)** | +| accountUnsized2 | 1,163 | - | +| accountUnsizedInit4 | 17,407 | 🟢 **-1,196 (6.43%)** | +| accountUnsized4 | 2,002 | - | +| accountUnsizedInit8 | 33,465 | 🟢 **-2,528 (7.02%)** | +| accountUnsized8 | 3,673 | - | +| boxedAccountEmptyInit1 | 4,876 | 🟢 **-299 (5.78%)** | +| boxedAccountEmpty1 | 734 | - | +| boxedAccountEmptyInit2 | 8,783 | 🟢 **-631 (6.70%)** | +| boxedAccountEmpty2 | 1,116 | - | +| boxedAccountEmptyInit4 | 16,655 | 🟢 **-1,263 (7.05%)** | +| boxedAccountEmpty4 | 1,872 | - | +| boxedAccountEmptyInit8 | 32,561 | 🟢 **-2,392 (6.84%)** | +| boxedAccountEmpty8 | 3,401 | - | +| boxedAccountSizedInit1 | 4,972 | 🟢 **-299 (5.67%)** | +| boxedAccountSized1 | 783 | - | +| boxedAccountSizedInit2 | 8,952 | 🟢 **-631 (6.58%)** | +| boxedAccountSized2 | 1,190 | - | +| boxedAccountSizedInit4 | 16,967 | 🟢 **-1,263 (6.93%)** | +| boxedAccountSized4 | 1,996 | - | +| boxedAccountSizedInit8 | 33,161 | 🟢 **-2,392 (6.73%)** | +| boxedAccountSized8 | 3,628 | - | +| boxedAccountUnsizedInit1 | 5,072 | 🟢 **-299 (5.57%)** | +| boxedAccountUnsized1 | 836 | - | +| boxedAccountUnsizedInit2 | 9,128 | 🟢 **-631 (6.47%)** | +| boxedAccountUnsized2 | 1,270 | - | +| boxedAccountUnsizedInit4 | 17,295 | 🟢 **-1,263 (6.81%)** | +| boxedAccountUnsized4 | 2,132 | - | +| boxedAccountUnsizedInit8 | 33,793 | 🟢 **-2,392 (6.61%)** | +| boxedAccountUnsized8 | 3,881 | - | +| boxedInterfaceAccountMint1 | 1,351 | - | +| boxedInterfaceAccountMint2 | 2,123 | - | +| boxedInterfaceAccountMint4 | 3,656 | - | +| boxedInterfaceAccountMint8 | 6,738 | - | +| boxedInterfaceAccountToken1 | 2,011 | - | +| boxedInterfaceAccountToken2 | 3,431 | - | +| boxedInterfaceAccountToken4 | 6,260 | - | +| boxedInterfaceAccountToken8 | 11,934 | - | +| interfaceAccountMint1 | 1,476 | - | +| interfaceAccountMint2 | 2,489 | - | +| interfaceAccountMint4 | 4,511 | - | +| interfaceAccountMint8 | 8,550 | - | +| interfaceAccountToken1 | 2,111 | - | +| interfaceAccountToken2 | 3,729 | - | +| interfaceAccountToken4 | 6,955 | - | +| interface1 | 769 | - | +| interface2 | 912 | - | +| interface4 | 1,189 | - | +| interface8 | 1,748 | - | +| program1 | 779 | - | +| program2 | 934 | 🔴 **+14 (1.52%)** | +| program4 | 1,221 | 🔴 **+28 (2.35%)** | +| program8 | 1,800 | 🔴 **+56 (3.21%)** | +| signer1 | 774 | - | +| signer2 | 1,064 | - | +| signer4 | 1,637 | - | +| signer8 | 2,788 | - | +| systemAccount1 | 796 | - | +| systemAccount2 | 1,096 | - | +| systemAccount4 | 1,689 | - | +| systemAccount8 | 2,880 | - | +| uncheckedAccount1 | 783 | - | +| uncheckedAccount2 | 1,056 | - | +| uncheckedAccount4 | 1,594 | - | +| uncheckedAccount8 | 2,679 | - | ### Notable changes diff --git a/tests/bench/bench.json b/tests/bench/bench.json index c1cdd9ae23..194b3d51c2 100644 --- a/tests/bench/bench.json +++ b/tests/bench/bench.json @@ -1680,93 +1680,93 @@ "bench": 966096 }, "computeUnits": { - "accountInfo1": 685, - "accountInfo2": 1053, - "accountInfo4": 1750, - "accountInfo8": 3135, - "accountEmptyInit1": 4915, - "accountEmpty1": 774, - "accountEmptyInit2": 8793, - "accountEmpty2": 1174, - "accountEmptyInit4": 16495, - "accountEmpty4": 1962, - "accountEmptyInit8": 31997, - "accountEmpty8": 3548, - "accountSizedInit1": 5019, - "accountSized1": 813, - "accountSizedInit2": 8981, - "accountSized2": 1222, - "accountSizedInit4": 16850, - "accountSized4": 2046, - "accountSizedInit8": 32653, - "accountSized8": 3690, - "accountUnsizedInit1": 5127, - "accountUnsized1": 853, - "accountUnsizedInit2": 9131, - "accountUnsized2": 1284, - "accountUnsizedInit4": 17198, - "accountUnsized4": 2147, - "accountUnsizedInit8": 33324, - "accountUnsized8": 3867, - "boxedAccountEmptyInit1": 5007, - "boxedAccountEmpty1": 864, - "boxedAccountEmptyInit2": 8906, - "boxedAccountEmpty2": 1286, - "boxedAccountEmptyInit4": 16648, - "boxedAccountEmpty4": 2115, - "boxedAccountEmptyInit8": 32231, - "boxedAccountEmpty8": 3801, - "boxedAccountSizedInit1": 5103, - "boxedAccountSized1": 912, - "boxedAccountSizedInit2": 9075, - "boxedAccountSized2": 1337, - "boxedAccountSizedInit4": 16960, - "boxedAccountSized4": 2195, - "boxedAccountSizedInit8": 32831, - "boxedAccountSized8": 3935, - "boxedAccountUnsizedInit1": 5202, - "boxedAccountUnsized1": 943, - "boxedAccountUnsizedInit2": 9251, - "boxedAccountUnsized2": 1392, - "boxedAccountUnsizedInit4": 17284, - "boxedAccountUnsized4": 2283, - "boxedAccountUnsizedInit8": 33455, - "boxedAccountUnsized8": 4089, - "boxedInterfaceAccountMint1": 1110, - "boxedInterfaceAccountMint2": 1534, - "boxedInterfaceAccountMint4": 2370, - "boxedInterfaceAccountMint8": 4064, - "boxedInterfaceAccountToken1": 1246, - "boxedInterfaceAccountToken2": 1794, + "accountInfo1": 719, + "accountInfo2": 1124, + "accountInfo4": 1895, + "accountInfo8": 3428, + "accountEmptyInit1": 4996, + "accountEmpty1": 803, + "accountEmptyInit2": 8919, + "accountEmpty2": 1235, + "accountEmptyInit4": 16759, + "accountEmpty4": 2087, + "accountEmptyInit8": 32446, + "accountEmpty8": 3801, + "accountSizedInit1": 5097, + "accountSized1": 842, + "accountSizedInit2": 9098, + "accountSized2": 1283, + "accountSizedInit4": 17102, + "accountSized4": 2171, + "accountSizedInit8": 33078, + "accountSized8": 3943, + "accountUnsizedInit1": 5199, + "accountUnsized1": 882, + "accountUnsizedInit2": 9285, + "accountUnsized2": 1345, + "accountUnsizedInit4": 17426, + "accountUnsized4": 2272, + "accountUnsizedInit8": 33700, + "accountUnsized8": 4120, + "boxedAccountEmptyInit1": 5088, + "boxedAccountEmpty1": 893, + "boxedAccountEmptyInit2": 9032, + "boxedAccountEmpty2": 1347, + "boxedAccountEmptyInit4": 16912, + "boxedAccountEmpty4": 2240, + "boxedAccountEmptyInit8": 32679, + "boxedAccountEmpty8": 4054, + "boxedAccountSizedInit1": 5181, + "boxedAccountSized1": 932, + "boxedAccountSizedInit2": 9194, + "boxedAccountSized2": 1398, + "boxedAccountSizedInit4": 17212, + "boxedAccountSized4": 2320, + "boxedAccountSizedInit8": 33255, + "boxedAccountSized8": 4188, + "boxedAccountUnsizedInit1": 5274, + "boxedAccountUnsized1": 972, + "boxedAccountUnsizedInit2": 9356, + "boxedAccountUnsized2": 1453, + "boxedAccountUnsizedInit4": 17512, + "boxedAccountUnsized4": 2408, + "boxedAccountUnsizedInit8": 33831, + "boxedAccountUnsized8": 4342, + "boxedInterfaceAccountMint1": 1153, + "boxedInterfaceAccountMint2": 1584, + "boxedInterfaceAccountMint4": 2434, + "boxedInterfaceAccountMint8": 4156, + "boxedInterfaceAccountToken1": 1278, + "boxedInterfaceAccountToken2": 1822, "boxedInterfaceAccountToken4": 2878, "boxedInterfaceAccountToken8": 5068, - "interfaceAccountMint1": 1126, - "interfaceAccountMint2": 1562, - "interfaceAccountMint4": 2432, - "interfaceAccountMint8": 4163, - "interfaceAccountToken1": 1268, - "interfaceAccountToken2": 1849, + "interfaceAccountMint1": 1169, + "interfaceAccountMint2": 1612, + "interfaceAccountMint4": 2496, + "interfaceAccountMint8": 4255, + "interfaceAccountToken1": 1300, + "interfaceAccountToken2": 1877, "interfaceAccountToken4": 2997, - "interface1": 878, - "interface2": 1023, - "interface4": 1301, - "interface8": 1867, - "program1": 890, - "program2": 1051, - "program4": 1345, - "program8": 1943, - "signer1": 874, - "signer2": 1173, - "signer4": 1759, - "signer8": 2941, - "systemAccount1": 911, - "systemAccount2": 1235, - "systemAccount4": 1871, - "systemAccount8": 3153, - "uncheckedAccount1": 882, - "uncheckedAccount2": 1162, - "uncheckedAccount4": 1716, - "uncheckedAccount8": 2833 + "interface1": 912, + "interface2": 1055, + "interface4": 1329, + "interface8": 1887, + "program1": 932, + "program2": 1083, + "program4": 1373, + "program8": 1963, + "signer1": 908, + "signer2": 1244, + "signer4": 1904, + "signer8": 3234, + "systemAccount1": 945, + "systemAccount2": 1306, + "systemAccount4": 2016, + "systemAccount8": 3446, + "uncheckedAccount1": 916, + "uncheckedAccount2": 1233, + "uncheckedAccount4": 1861, + "uncheckedAccount8": 3126 }, "stackMemory": { "account_info1": 46,