mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 10:25:17 +00:00
Cosmetics
This commit is contained in:
parent
5499be589a
commit
cc84d9cf64
@ -462,6 +462,7 @@ class AnswSizesBlock(AbstractBlock):
|
||||
self.sum_out = 0
|
||||
self.count = 0
|
||||
self.header = screen.markup.WHITE + 'Request/Response Sizes:' + screen.markup.RESET
|
||||
self.cur_count = 0
|
||||
|
||||
def render(self):
|
||||
self.lines = [self.header]
|
||||
@ -469,6 +470,7 @@ class AnswSizesBlock(AbstractBlock):
|
||||
self.lines.append(" Avg Request at %s RPS: %d bytes" % (self.current_rps, self.sum_out / self.count))
|
||||
self.lines.append(" Avg Response at %s RPS: %d bytes" % (self.current_rps, self.sum_in / self.count))
|
||||
self.lines.append("")
|
||||
if self.cur_count:
|
||||
self.lines.append(" Last Avg Request: %d bytes" % (self.cur_out / self.cur_count))
|
||||
self.lines.append(" Last Avg Response: %d bytes" % (self.cur_in / self.cur_count))
|
||||
for line in self.lines:
|
||||
|
@ -6,13 +6,13 @@ from Tank.Plugins.ApacheBenchmark import ApacheBenchmarkPlugin
|
||||
from Tank.Plugins.Monitoring import MonitoringPlugin
|
||||
from Tank.Plugins.Phantom import PhantomPlugin
|
||||
import StringIO
|
||||
import gzip
|
||||
import itertools
|
||||
import logging
|
||||
import mimetools
|
||||
import mimetypes
|
||||
import os
|
||||
import urllib2
|
||||
import gzip
|
||||
|
||||
class LoadosophiaPlugin(AbstractPlugin):
|
||||
'''
|
||||
@ -66,6 +66,7 @@ class LoadosophiaPlugin(AbstractPlugin):
|
||||
self.loadosophia.send_results(self.project_key, main_file, [mon_file])
|
||||
return retcode
|
||||
|
||||
|
||||
class LoadosophiaClient:
|
||||
def __init__(self):
|
||||
self.log = logging.getLogger(__name__)
|
||||
@ -197,3 +198,5 @@ class MultiPartForm(object):
|
||||
flattened.append('--' + self.boundary + '--')
|
||||
flattened.append('')
|
||||
return '\r\n'.join(flattened)
|
||||
|
||||
|
||||
|
@ -681,7 +681,6 @@ class PhantomReader(AbstractReader):
|
||||
'''
|
||||
Mark second with expected rps from stepper info
|
||||
'''
|
||||
# TODO: 3 optimize expected rps with rolling property
|
||||
offset = next_time - self.first_request_time
|
||||
for rps, dur in Utils.pairs(self.phantom.steps):
|
||||
if offset < dur:
|
||||
|
Loading…
Reference in New Issue
Block a user