MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / run

Method run

benchmarks/callback_full_pipeline.py:51–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 future.add_callbacks(self.insert_next, self.insert_next)
50
51 def run(self):
52 self.start_profile()
53
54 if self.protocol_version >= 3:
55 concurrency = 1000
56 else:
57 concurrency = 100
58
59 for _ in range(min(concurrency, self.num_queries)):
60 self.insert_next()
61
62 self.event.wait()
63
64 self.finish_profile()
65
66
67if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

insert_nextMethod · 0.95
start_profileMethod · 0.80
finish_profileMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected