Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

178 changes: 89 additions & 89 deletions bench/COMPUTE_UNITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,95 +16,95 @@ The programs and their tests are located in [/tests/bench](https://github.com/co

Solana version: 2.1.0

| Instruction | Compute Units | - |
| --------------------------- | ------------- | --- |
| accountInfo1 | 571 | - |
| accountInfo2 | 895 | - |
| accountInfo4 | 1,553 | - |
| accountInfo8 | 2,923 | - |
| accountEmptyInit1 | 5,083 | - |
| accountEmpty1 | 645 | - |
| accountEmptyInit2 | 9,301 | - |
| accountEmpty2 | 1,007 | - |
| accountEmptyInit4 | 17,764 | - |
| accountEmpty4 | 1,724 | - |
| accountEmptyInit8 | 34,723 | - |
| accountEmpty8 | 3,163 | - |
| accountSizedInit1 | 5,192 | - |
| accountSized1 | 693 | - |
| accountSizedInit2 | 9,489 | - |
| accountSized2 | 1,075 | - |
| accountSizedInit4 | 18,170 | - |
| accountSized4 | 1,848 | - |
| accountSizedInit8 | 35,433 | - |
| accountSized8 | 3,387 | - |
| accountUnsizedInit1 | 5,305 | - |
| accountUnsized1 | 746 | - |
| accountUnsizedInit2 | 9,759 | - |
| accountUnsized2 | 1,163 | - |
| accountUnsizedInit4 | 18,603 | - |
| accountUnsized4 | 2,002 | - |
| accountUnsizedInit8 | 35,993 | - |
| accountUnsized8 | 3,673 | - |
| boxedAccountEmptyInit1 | 5,175 | - |
| boxedAccountEmpty1 | 734 | - |
| boxedAccountEmptyInit2 | 9,414 | - |
| boxedAccountEmpty2 | 1,116 | - |
| boxedAccountEmptyInit4 | 17,918 | - |
| boxedAccountEmpty4 | 1,872 | - |
| boxedAccountEmptyInit8 | 34,953 | - |
| boxedAccountEmpty8 | 3,401 | - |
| boxedAccountSizedInit1 | 5,271 | - |
| boxedAccountSized1 | 783 | - |
| boxedAccountSizedInit2 | 9,583 | - |
| boxedAccountSized2 | 1,190 | - |
| boxedAccountSizedInit4 | 18,230 | - |
| boxedAccountSized4 | 1,996 | - |
| boxedAccountSizedInit8 | 35,553 | - |
| boxedAccountSized8 | 3,628 | - |
| boxedAccountUnsizedInit1 | 5,371 | - |
| boxedAccountUnsized1 | 836 | - |
| boxedAccountUnsizedInit2 | 9,759 | - |
| boxedAccountUnsized2 | 1,270 | - |
| boxedAccountUnsizedInit4 | 18,558 | - |
| boxedAccountUnsized4 | 2,132 | - |
| boxedAccountUnsizedInit8 | 36,185 | - |
| 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 | 920 | - |
| program4 | 1,193 | - |
| program8 | 1,744 | - |
| 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,829 | 🟢 **-254 (5.00%)** |
| accountEmpty1 | 645 | - |
| accountEmptyInit2 | 8,793 | 🟢 **-508 (5.46%)** |
| accountEmpty2 | 1,007 | - |
| accountEmptyInit4 | 16,748 | 🟢 **-1,016 (5.72%)** |
| accountEmpty4 | 1,724 | - |
| accountEmptyInit8 | 32,691 | 🟢 **-2,032 (5.85%)** |
| accountEmpty8 | 3,163 | - |
| accountSizedInit1 | 4,938 | 🟢 **-254 (4.89%)** |
| accountSized1 | 693 | - |
| accountSizedInit2 | 8,981 | 🟢 **-508 (5.35%)** |
| accountSized2 | 1,075 | - |
| accountSizedInit4 | 17,154 | 🟢 **-1,016 (5.59%)** |
| accountSized4 | 1,848 | - |
| accountSizedInit8 | 33,401 | 🟢 **-2,032 (5.73%)** |
| accountSized8 | 3,387 | - |
| accountUnsizedInit1 | 5,051 | 🟢 **-254 (4.79%)** |
| accountUnsized1 | 746 | - |
| accountUnsizedInit2 | 9,251 | 🟢 **-508 (5.21%)** |
| accountUnsized2 | 1,163 | - |
| accountUnsizedInit4 | 17,587 | 🟢 **-1,016 (5.46%)** |
| accountUnsized4 | 2,002 | - |
| accountUnsizedInit8 | 33,961 | 🟢 **-2,032 (5.65%)** |
| accountUnsized8 | 3,673 | - |
| boxedAccountEmptyInit1 | 4,921 | 🟢 **-254 (4.91%)** |
| boxedAccountEmpty1 | 734 | - |
| boxedAccountEmptyInit2 | 8,906 | 🟢 **-508 (5.40%)** |
| boxedAccountEmpty2 | 1,116 | - |
| boxedAccountEmptyInit4 | 16,902 | 🟢 **-1,016 (5.67%)** |
| boxedAccountEmpty4 | 1,872 | - |
| boxedAccountEmptyInit8 | 32,921 | 🟢 **-2,032 (5.81%)** |
| boxedAccountEmpty8 | 3,401 | - |
| boxedAccountSizedInit1 | 5,017 | 🟢 **-254 (4.82%)** |
| boxedAccountSized1 | 783 | - |
| boxedAccountSizedInit2 | 9,075 | 🟢 **-508 (5.30%)** |
| boxedAccountSized2 | 1,190 | - |
| boxedAccountSizedInit4 | 17,214 | 🟢 **-1,016 (5.57%)** |
| boxedAccountSized4 | 1,996 | - |
| boxedAccountSizedInit8 | 33,521 | 🟢 **-2,032 (5.72%)** |
| boxedAccountSized8 | 3,628 | - |
| boxedAccountUnsizedInit1 | 5,117 | 🟢 **-254 (4.73%)** |
| boxedAccountUnsized1 | 836 | - |
| boxedAccountUnsizedInit2 | 9,251 | 🟢 **-508 (5.21%)** |
| boxedAccountUnsized2 | 1,270 | - |
| boxedAccountUnsizedInit4 | 17,542 | 🟢 **-1,016 (5.47%)** |
| boxedAccountUnsized4 | 2,132 | - |
| boxedAccountUnsizedInit8 | 34,153 | 🟢 **-2,032 (5.62%)** |
| 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 | 920 | - |
| program4 | 1,193 | - |
| program8 | 1,744 | - |
| 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

Expand Down
1 change: 1 addition & 0 deletions lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ solana-define-syscall = "2"
solana-feature-gate-interface = "2"
solana-instruction = "2"
solana-instructions-sysvar = "2"
solana-invoke = "0.4.0"
solana-loader-v3-interface = { version = "3", features = ["bincode"] }
solana-msg = "2"
solana-program-entrypoint = "2"
Expand Down
16 changes: 10 additions & 6 deletions lang/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ pub mod solana_program {
pub use solana_feature_gate_interface as feature;

pub use {
solana_account_info as account_info, solana_clock as clock, solana_cpi as program,
solana_msg::msg, solana_program_entrypoint as entrypoint,
solana_program_entrypoint::entrypoint, solana_program_error as program_error,
solana_program_memory as program_memory, solana_program_option as program_option,
solana_program_pack as program_pack, solana_pubkey as pubkey,
solana_sdk_ids::system_program, solana_system_interface::instruction as system_instruction,
solana_account_info as account_info, solana_clock as clock, solana_msg::msg,
solana_program_entrypoint as entrypoint, solana_program_entrypoint::entrypoint,
solana_program_error as program_error, solana_program_memory as program_memory,
solana_program_option as program_option, solana_program_pack as program_pack,
solana_pubkey as pubkey, solana_sdk_ids::system_program,
solana_system_interface::instruction as system_instruction,
};
pub mod instruction {
pub use solana_instruction::*;
Expand All @@ -94,6 +94,10 @@ pub mod solana_program {
pub mod rent {
pub use solana_sysvar::rent::*;
}
pub mod program {
pub use solana_cpi::*;
pub use solana_invoke::{invoke, invoke_signed, invoke_signed_unchecked, invoke_unchecked};
}

pub mod bpf_loader_upgradeable {
#[allow(deprecated)]
Expand Down
14 changes: 14 additions & 0 deletions tests/auction-house/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions tests/bench/bench.json
Original file line number Diff line number Diff line change
Expand Up @@ -1312,53 +1312,53 @@
"accountInfo2": 895,
"accountInfo4": 1553,
"accountInfo8": 2923,
"accountEmptyInit1": 5083,
"accountEmptyInit1": 4829,
"accountEmpty1": 645,
"accountEmptyInit2": 9301,
"accountEmptyInit2": 8793,
"accountEmpty2": 1007,
"accountEmptyInit4": 17764,
"accountEmptyInit4": 16748,
"accountEmpty4": 1724,
"accountEmptyInit8": 34723,
"accountEmptyInit8": 32691,
"accountEmpty8": 3163,
"accountSizedInit1": 5192,
"accountSizedInit1": 4938,
"accountSized1": 693,
"accountSizedInit2": 9489,
"accountSizedInit2": 8981,
"accountSized2": 1075,
"accountSizedInit4": 18170,
"accountSizedInit4": 17154,
"accountSized4": 1848,
"accountSizedInit8": 35433,
"accountSizedInit8": 33401,
"accountSized8": 3387,
"accountUnsizedInit1": 5305,
"accountUnsizedInit1": 5051,
"accountUnsized1": 746,
"accountUnsizedInit2": 9759,
"accountUnsizedInit2": 9251,
"accountUnsized2": 1163,
"accountUnsizedInit4": 18603,
"accountUnsizedInit4": 17587,
"accountUnsized4": 2002,
"accountUnsizedInit8": 35993,
"accountUnsizedInit8": 33961,
"accountUnsized8": 3673,
"boxedAccountEmptyInit1": 5175,
"boxedAccountEmptyInit1": 4921,
"boxedAccountEmpty1": 734,
"boxedAccountEmptyInit2": 9414,
"boxedAccountEmptyInit2": 8906,
"boxedAccountEmpty2": 1116,
"boxedAccountEmptyInit4": 17918,
"boxedAccountEmptyInit4": 16902,
"boxedAccountEmpty4": 1872,
"boxedAccountEmptyInit8": 34953,
"boxedAccountEmptyInit8": 32921,
"boxedAccountEmpty8": 3401,
"boxedAccountSizedInit1": 5271,
"boxedAccountSizedInit1": 5017,
"boxedAccountSized1": 783,
"boxedAccountSizedInit2": 9583,
"boxedAccountSizedInit2": 9075,
"boxedAccountSized2": 1190,
"boxedAccountSizedInit4": 18230,
"boxedAccountSizedInit4": 17214,
"boxedAccountSized4": 1996,
"boxedAccountSizedInit8": 35553,
"boxedAccountSizedInit8": 33521,
"boxedAccountSized8": 3628,
"boxedAccountUnsizedInit1": 5371,
"boxedAccountUnsizedInit1": 5117,
"boxedAccountUnsized1": 836,
"boxedAccountUnsizedInit2": 9759,
"boxedAccountUnsizedInit2": 9251,
"boxedAccountUnsized2": 1270,
"boxedAccountUnsizedInit4": 18558,
"boxedAccountUnsizedInit4": 17542,
"boxedAccountUnsized4": 2132,
"boxedAccountUnsizedInit8": 36185,
"boxedAccountUnsizedInit8": 34153,
"boxedAccountUnsized8": 3881,
"boxedInterfaceAccountMint1": 1351,
"boxedInterfaceAccountMint2": 2123,
Expand Down
14 changes: 14 additions & 0 deletions tests/spl/metadata/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.