-
Notifications
You must be signed in to change notification settings - Fork 44
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
add submit mutation benchmark #279
Conversation
How to use the submit mutation performanceThe [submit_mutation_benchmark.rs] sends submit mutation with the given QPS and payload size. pre-requisites (option)
set
step 1: build and start localnet
step 2: configure the qps and payloadfor qps in [100, 200, 400, 600].iter() {
run_submit_mutation(qps, 1).await; step 3: run the benchmark to submit mutationcargo bench --package db3-sdk --bench submit_mutation_benchmark step 4: keep an eye on the tendermint_mempool_size via http://127.0.0.1:26660/ to see if the mempool exceed limit (5000 by default)ReportHardware & SoftwareMutation Data
key: bm_submit_mutation_key_${pid}${ts}${index}
let mutation = Mutation {
ns: ns_vec.clone(),
kv_pairs,
nonce,
chain_id: ChainId::MainNet.into(),
chain_role: ChainRole::StorageShardChain.into(),
gas_price: None,
gas: 10,
};
Assumption
|
Codecov Report
@@ Coverage Diff @@
## main #279 +/- ##
=======================================
Coverage 54.86% 54.86%
=======================================
Files 41 41
Lines 3820 3820
=======================================
Hits 2096 2096
Misses 1724 1724
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
2000 qps in client with 1 KvPairs Length, 956 qps in tendermint
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add benchmark for submit mutation request.