mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-08 03:08:56 +00:00
threads parameter in config
This commit is contained in:
parent
e770856423
commit
a378c9a556
@ -55,6 +55,7 @@ class BFGPlugin(AbstractPlugin):
|
||||
self.bfg = BFG(
|
||||
gun=self.gun,
|
||||
instances=self.get_option("instances", '15'),
|
||||
threads=self.get_option("threads", '10'),
|
||||
stpd_filename=self.stepper_wrapper.stpd,
|
||||
cached_stpd=cached_stpd,
|
||||
)
|
||||
|
@ -11,6 +11,7 @@ class BFG(object):
|
||||
self,
|
||||
gun,
|
||||
instances,
|
||||
threads,
|
||||
stpd_filename,
|
||||
cached_stpd=False,
|
||||
):
|
||||
@ -20,6 +21,7 @@ class BFG(object):
|
||||
self.gun = gun
|
||||
self.stpd_filename = stpd_filename
|
||||
self.instances = int(instances)
|
||||
self.threads = int(threads)
|
||||
self.results = None
|
||||
self.worker = None
|
||||
self.cached_stpd = cached_stpd
|
||||
@ -49,6 +51,7 @@ class BFG(object):
|
||||
self.gun,
|
||||
results,
|
||||
stpd_filename=self.stpd_filename,
|
||||
threads=self.threads,
|
||||
instances=self.instances,
|
||||
cached_stpd=self.cached_stpd,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user