hyperledger / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
433 stars 276 forks source link

[BUG] [performance] Degradation of queue performance #4963

Open timofeevmd opened 1 month ago

timofeevmd commented 1 month ago

OS and Environment

linux, k8s

GIT commit hash

version="2.0.0-pre-rc.22.0" git_commit_sha="a62640d8a"

Minimum working example / Steps to reproduce

Conduct a load test search max throughput with the startup parameters -

scenarion: 5 peers status request turn on log_level:INFO gatling log_level: INFO

./mvnw gatling:test -DtargetURL=https://iroha2.test.tachi.soramitsu.co.jp -DconcurrentUsers=50 -Dtimes=100 -DstageDuration=5 -DrampDuration=10 -DstartingFrom=50 -DmaxDuration=600

for more details ping @timofeevmd

Actual result

Degradation of module, more details on performance report

iroha_core::gossiper::TransactionGossiper::run::{{closure}}: +2.9m +468.15%
iroha_core::queue::Queue::n_random_transactions: +2.9m +605.49%
iroha_core::queue::<impl iroha_core::tx::AcceptedTransaction>::is_in_blockchain: +2.6m +661.38%
iroha_core::state::StateReadOnly::has_transaction: +49.5s +875.11%
iroha_data_model::transaction::SignedTransaction::hash 1.8m +595.32%

Expected result

Increase in throughput, absence of queue performance degradation

Logs

Log contents ```json Replace this text with a JSON log, so it doesn't grow too large and has highlighting. ```

Who can help to reproduce?

@timofeevmd

Notes

No response

mversic commented 1 month ago

let's retest this after rc22.2 is released