-
Notifications
You must be signed in to change notification settings - Fork 296
Add performance test based on locust.io #2087
Add performance test based on locust.io #2087
Conversation
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
test/load/locustfile-performance.py
Outdated
grpc_gevent.init_gevent() | ||
|
||
import grpc | ||
from irohalib import Iroha, IrohaGrpc |
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.
Let's move to Iroha from pypi.
pip install iroha
and
from iroha import Iroha, IrohaGrpc, IrohaCrypto
The second preparation step from test/load/README.md will be much simpler.
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.
Launched - seems working.
test/load/locustfile-performance.py
Outdated
@task | ||
def send_tx(self): | ||
iroha = Iroha('admin@test') | ||
admin_private_key = 'b60e30b7af0f0d233473ca8afe10084c321abc254a911b68c7bb49e924c579bb' |
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.
Why the key does not match the one in genesis block example?
Also, if this script is supposed to be run from within the repo - could we read the private key matching the public one from genesis block that irohad
uses? Or if you consider it too complicated - please at least put this to the beginning of the file to ease adjustment.
Signed-off-by: Igor Egorov <[email protected]>
Signed-off-by: Igor Egorov <[email protected]>
Encountered the following problem:
|
The problem still persists on macOS and Ubuntu 18.10 x64 |
Ubuntu |
macOS |
Signed-off-by: Andrei Lebedev <[email protected]>
5ca5c68
to
1b72b52
Compare
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
Signed-off-by: Andrei Lebedev <[email protected]>
Description of the Change
Performance test that sends a transaction using asynchronous API and waits until the final status - committed or rejected - is received from the status stream.
How to run
README.md