Skip to content

Commit

Permalink
tests: profile compute units in success cases
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Oct 7, 2024
1 parent 14baeee commit 0847cec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions program/tests/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ fn success() {
],
&[
Check::success(),
Check::compute_units(19_893),
Check::account(&program)
.data(
&bincode::serialize(&UpgradeableLoaderState::Program {
Expand Down
1 change: 1 addition & 0 deletions program/tests/initialize_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ fn success() {
],
&[
Check::success(),
Check::compute_units(2_168),
Check::account(&source)
.lamports(100_000_000)
.owner(&solana_loader_v3_program::id())
Expand Down
2 changes: 2 additions & 0 deletions program/tests/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ fn success() {
],
&[
Check::success(),
Check::compute_units(1_419),
Check::account(&buffer).data(&check_data).build(),
],
);
Expand All @@ -227,6 +228,7 @@ fn success() {
],
&[
Check::success(),
Check::compute_units(1_391),
Check::account(&buffer).data(&check_data).build(),
],
);
Expand Down

0 comments on commit 0847cec

Please sign in to comment.