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

Block execution time grows with the count of transactions #2038

Open
oleksandrSydorenkoJ opened this issue Nov 6, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working epic:HPD

Comments

@oleksandrSydorenkoJ
Copy link

oleksandrSydorenkoJ commented Nov 6, 2024

Note
Probably, can fix or improve #1962

Describe the bug
Related to #526
Execution algorithm of transactions: After validation, a transaction is added to a List and executed there. When a new transaction is added to the List, it is not only the most recently added transaction that gets executed but all transactions present in the list. Therefore, as the number of transactions increases, the execution time grows disproportionately

Versions
Skaled:3.20.0-beta.1

Preconditions
Schain medium type
1000 Accounts with sFuel on balance
tool for running performance tests

To Reproduce

  1. Run performance tests with 100 transactions in a block
  2. Check block execution time (BFT, SWT, and CWT values) and save the SWT for 100 txs
  3. Increase the number of transactions in the block up to 1000
  4. Check block execution time (BFT, SWT, and CWT values) and save the SWT for 1000 txs

Expected behavior
SWT for the block with 1000 transactions should take 10 times more time than the block with 100 txs in a linear way

Actual state
SWT for the block with 1000 transactions is slower than a block with 100 txs almost in 40 times (40 ms to 1600ms in average)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working epic:HPD
Projects
Status: No status
Development

No branches or pull requests

3 participants