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

Function teardown

benchmarks/base.py:129–134  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

127
128
129def teardown(options):
130 cluster = Cluster(options.hosts, schema_metadata_enabled=False, token_metadata_enabled=False)
131 session = cluster.connect()
132 if not options.keep_data:
133 session.execute("DROP KEYSPACE " + options.keyspace)
134 cluster.shutdown()
135
136
137def benchmark(thread_class):

Callers 1

benchmarkFunction · 0.85

Calls 4

connectMethod · 0.95
shutdownMethod · 0.95
ClusterClass · 0.90
executeMethod · 0.45

Tested by

no test coverage detected