Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyless exebench in ci #15559

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

keyless exebench in ci #15559

wants to merge 12 commits into from

Conversation

zjma
Copy link
Contributor

@zjma zjma commented Dec 11, 2024

Description

Add initial TPS expectation in CI for non-conflicting coin transfers between 20k keyless accounts.

How Has This Been Tested?

Manual CI runs.

Key Areas to Review

n/a

Type of Change

  • Tests

Which Components or Systems Does This Change Impact?

n/a

Checklist

  • I have read and followed the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I identified and added all stakeholders and component owners affected by this change as reviewers
  • I tested both happy and unhappy path of the functionality
  • I have made corresponding changes to the documentation

Copy link

trunk-io bot commented Dec 11, 2024

⏱️ 2h 29m total CI duration on this PR
Slowest 15 Jobs Cumulative Duration Recent Runs
rust-targeted-unit-tests 21m 🟩
rust-targeted-unit-tests 20m 🟩
rust-cargo-deny 14m 🟩🟩🟩🟩🟩 (+2 more)
rust-move-tests 13m 🟩
rust-move-tests 13m 🟩
rust-move-tests 13m 🟩
rust-move-tests 13m 🟩
rust-move-tests 12m 🟩
rust-move-tests 12m 🟩
check-dynamic-deps 7m 🟩🟩🟩🟩🟩 (+2 more)
general-lints 4m 🟩🟩🟩🟩🟩 (+2 more)
semgrep/ci 3m 🟩🟩🟩🟩🟩 (+2 more)
rust-move-tests 3m 🟥
file_change_determinator 1m 🟩🟩🟩🟩🟩 (+2 more)
permission-check 24s 🟩🟩🟩🟩🟩 (+2 more)

settingsfeedbackdocs ⋅ learn more about trunk.io

testsuite/single_node_performance.py Outdated Show resolved Hide resolved
testsuite/single_node_performance.py Outdated Show resolved Hide resolved
@zjma zjma marked this pull request as ready for review December 18, 2024 20:15
@@ -64,6 +64,8 @@ class Flow(Flag):
]
)
MAIN_SIGNER_ACCOUNTS = 2 * MAX_BLOCK_SIZE
NUM_KEYLESS_ACCOUNTS = 20000 # Creating 20k keyless accounts should take ~1 min.
MAX_BLOCK_SIZE_KEYLESS = 10000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need different value here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need, fixed

@@ -64,6 +64,8 @@ class Flow(Flag):
]
)
MAIN_SIGNER_ACCOUNTS = 2 * MAX_BLOCK_SIZE
NUM_KEYLESS_ACCOUNTS = 20000 # Creating 20k keyless accounts should take ~1 min.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not 10k?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

key=RunGroupKey("keyless-coin-transfer"),
key_extra=RunGroupKeyExtra(
txn_auth_mode="keyless",
transaction_type_override="non-conflicting-coin-transfer"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to have a best comparison, let's use no-op or apt-fa-transfer - so we can compare keyless speed to no-keyless directly?

if we use no-op, then we could have only 10k accounts, and have additional_dst_pool_accounts=0? so that might be best?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

create_db_command = f"RUST_BACKTRACE=1 {BUILD_FOLDER}/aptos-executor-benchmark --block-executor-type aptos-vm-with-block-stm --block-size {MAX_BLOCK_SIZE} --execution-threads {NUMBER_OF_EXECUTION_THREADS} {DB_CONFIG_FLAGS} {DB_PRUNER_FLAGS} create-db {FEATURE_FLAGS} --data-dir {tmpdirname}/db --num-accounts {NUM_ACCOUNTS}"
output = execute_command(create_db_command)

results = []
print(f"Warmup - creating another DB with {NUM_KEYLESS_ACCOUNTS} keyless accounts")
create_db_command_keyless = f"RUST_BACKTRACE=1 {BUILD_FOLDER}/aptos-executor-benchmark --block-executor-type aptos-vm-with-block-stm --block-size {MAX_BLOCK_SIZE_KEYLESS} --execution-threads {NUMBER_OF_EXECUTION_THREADS} {DB_CONFIG_FLAGS} {DB_PRUNER_FLAGS} --use-keyless-accounts create-db {FEATURE_FLAGS} --data-dir {keyless_tmp_dir}/db --num-accounts {NUM_KEYLESS_ACCOUNTS}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if we can have a single db with both ?

also - based on FLOW - keyless run might be requested or not needed. We don't need to warmup keyless if keyless is not detected. we can have bool - keyless_warmed_up, and first time we need keyless, initialize those accounts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if we can have a single db with both ?
it requires more refactoring of executor benchmark... better be a separate pr?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe for now leave it as separate DB. but make the change to only create it if keyless test is being run

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

if test.key_extra.txn_auth_mode == "keyless":
data_dir = keyless_tmp_dir
keyless_flags = "--use-keyless-accounts"
additional_dst_pool_accounts = 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"if keyless run, set additional_dst_pool_accounts = 0"

@igor-aptos you were suggesting this in another comment, right?

] + [
RunGroupConfig(
expected_tps=7600,
key=RunGroupKey("keyless-coin-transfer"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyless-no-op

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants