-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add evm.debug_trace locust profile - add get_random_tx in test_data\base.py - change default block range to 10000 instead of 20 - add print to console to display test data preparation progress - add debug_traceCall params factory and add timeout to trace configs
- Loading branch information
Showing
4 changed files
with
90 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
""" | ||
Ethereum profile (heavy mode). | ||
""" | ||
|
||
from locust import constant_pacing, task | ||
|
||
from chainbench.user.evm import EVMBenchUser | ||
from chainbench.util.rng import get_rng | ||
|
||
|
||
class EthereumDebugTraceProfile(EVMBenchUser): | ||
wait_time = constant_pacing(10) | ||
|
||
@task(324) | ||
def debug_trace_transaction_task(self): | ||
self.make_call( | ||
name="debug_trace_transaction", | ||
method="debug_traceTransaction", | ||
params=self._trace_transaction_params_factory(get_rng()), | ||
), | ||
|
||
@task(41) | ||
def debug_trace_call_task(self): | ||
self.make_call( | ||
name="debug_trace_call", | ||
method="debug_traceCall", | ||
params=self._trace_call_params_factory(get_rng()), | ||
), | ||
|
||
@task(36) | ||
def debug_trace_block_by_number_task(self): | ||
self.make_call( | ||
name="debug_trace_block_by_number", | ||
method="debug_traceBlockByNumber", | ||
params=self._trace_block_by_number_params_factory(get_rng()), | ||
), | ||
|
||
@task(1) | ||
def debug_trace_block_by_hash_task(self): | ||
self.make_call( | ||
name="debug_trace_block_by_hash", | ||
method="debug_traceBlockByHash", | ||
params=self._trace_block_by_hash_params_factory(get_rng()), | ||
), |
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