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

Apply time benchmarking #4402

Merged
merged 6 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Add docs and fix rebase issue
  • Loading branch information
sisuresh committed Sep 17, 2024
commit 0a1c2f7f39d8a1d428f6d442feb8ab455227a0b9
16 changes: 16 additions & 0 deletions docs/software/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ Common options can be placed at any place in the command line.
## Command line options
Command options can only by placed after command.

* **apply-load**: Applies Soroban transactions by repeatedly generating transactions and closing
them directly through the LedgerManager. The parameters specified below configure the network limits, and
they're all required - **--ledger-max-instructions N**, **--ledger-max-read-entries N**, **--ledger-max-write-entries N**, **--ledger-max-read-byte N**, **--ledger-max-write-bytes N**, **--ledger-max-tx-size N**, **--ledger-max-tx-count N**. This command will generate enough transactions to fill up a synthetic transaction queue (it's just a list of transactions with the same limits as the real queue), and then create a transaction set off of that to
apply.

* At the moment, the Soroban transactions are generated using some of the same config parameters as the **generateload** command. Specifically,
`ARTIFICIALLY_GENERATE_LOAD_FOR_TESTING=true`,
`LOADGEN_NUM_DATA_ENTRIES_FOR_TESTING`,
`LOADGEN_NUM_DATA_ENTRIES_DISTRIBUTION_FOR_TESTING`,
`LOADGEN_IO_KILOBYTES_FOR_TESTING`,
`LOADGEN_IO_KILOBYTES_DISTRIBUTION_FOR_TESTING`,
`LOADGEN_TX_SIZE_BYTES_FOR_TESTING`,
`LOADGEN_TX_SIZE_BYTES_DISTRIBUTION_FOR_TESTING`,
`LOADGEN_INSTRUCTIONS_FOR_TESTING`, and
`LOADGEN_INSTRUCTIONS_DISTRIBUTION_FOR_TESTING`.

* **catchup <DESTINATION-LEDGER/LEDGER-COUNT>**: Perform catchup from history
archives without connecting to network. For new instances (with empty history
tables - only ledger 1 present in the database) it will respect LEDGER-COUNT
Expand Down
2 changes: 1 addition & 1 deletion src/simulation/TxGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ TxGenerator::createContractTransaction(
{
auto account = findAccount(accountId, ledgerNum);
SorobanResources createResources{};
createResources.instructions = 500'000;
createResources.instructions = 1'000'000;
createResources.readBytes = contractOverheadBytes;
createResources.writeBytes = 300;

Expand Down
Loading