Exemplo n.º 1
0
 def test_unique_statements(self):
     QUERIES = 'perfrunner/workloads/bigfun/queries_with_index.json'
     for query in new_queries(QUERIES):
         statements = set()
         for i in range(10):
             self.assertNotIn(query.statement, statements)
             statements.add(query.statement)
Exemplo n.º 2
0
def bigfun(rest: RestHelper, nodes: List[str], concurrency: int,
           num_requests: int) -> Iterator:
    for query in new_queries():
        timings = run_concurrent_queries(rest, nodes, query, concurrency,
                                         num_requests)
        avg_latency = int(1000 * numpy.mean(timings))  # Latency in ms
        yield query, avg_latency
Exemplo n.º 3
0
def bigfun(rest: RestHelper,
           nodes: List[str],
           concurrency: int,
           num_requests: int,
           query_set: str) -> Iterator:
    for query in new_queries(query_set):
        timings = run_concurrent_queries(rest,
                                         nodes,
                                         query,
                                         concurrency,
                                         num_requests)
        avg_latency = int(1000 * numpy.mean(timings))  # Latency in ms
        yield query, avg_latency
Exemplo n.º 4
0
 def test_unique_statements(self):
     for query in new_queries():
         statements = set()
         for i in range(10):
             self.assertNotIn(query.statement, statements)
             statements.add(query.statement)