self.url_counters = []
self.total_rate = 0
-
def make_request(self, session, urls):
"""
Makes a request for a resource at a random URL selected from a list of URLs passed as input parameter
r = session.get(r_url, headers=self.headers, stream=False, auth=('admin', 'admin'))
return r.status_code
-
def worker(self, tid, urls):
"""
Worker thread function. Connects to system-under-test and makes 'self.requests' requests for
with self.cond:
self.cond.notifyAll()
-
def run_test(self, urls):
"""
Runs the performance test. Starts 'self.threads' worker threads, waits for all of them to finish and
print 'Testing combined shards (topo+inv) performance:'
print '==============================================='
st.run_test(topo_urls + inv_urls)
-
-
-
-