forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[benchmarking] add commands per second metric (MystenLabs#9442)
## Description Add logic to compute the number of commands per successfully executed transaction and report commands per second (CPS) as part of the final results. Needed to show how much computation we can do per tx now that we have programmable txes. Describe the changes or additions included in this PR. ## Test Plan `cargo run --package sui-benchmark --bin stress -- --num-client-threads 1 --num-server-threads 6 bench --target-qps 10 --in-flight-ratio 1 --transfer-object 0 --batch-payment 1 --batch-payment-size 15 --run-duration 10s` ``` +-------------+-----+-----+--------+---------------+---------------+---------------+ | duration(s) | tps | cps | error% | latency (min) | latency (p50) | latency (p99) | +==================================================================================+ | 10 | 11 | 330 | 0 | 105 | 192 | 263 | +-------------+-----+-----+--------+---------------+---------------+---------------+ ``` Note: CPS is 330 because a batch payment to N recipients currently has N * 2 commands (11 TPS * 30 commands/tx = 330). This is because we encode paying N parties as `SplitCoin; Pay` N times. @tnowacki would it be possible to encode paying N parties with N+1 commands by adding a command (SplitCoinN?) or tweaking the existing encoding of `pay_sui`? ### Type of Change (Check all that apply) - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
1 parent
7ae008d
commit 92f7935
Showing
3 changed files
with
68 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters