def Run(benchmark_spec):
  vms = benchmark_spec.vms

  table_name = _GetTableName()

  # Add hbase conf dir to the classpath.
  ycsb_memory = ycsb_memory = min(vms[0].total_memory_kb // 1024, 4096)
  jvm_args = pipes.quote(' -Xmx{0}m'.format(ycsb_memory))

  executor_flags = {'cp': hbase.HBASE_CONF_DIR,
                    'jvm-args': jvm_args,
                    'table': table_name}

  executor = ycsb.YCSBExecutor('hbase-10', **executor_flags)
  cluster_name = (FLAGS.google_bigtable_cluster_name or
                  'pkb-bigtable-{0}'.format(FLAGS.run_uri))
  cluster_info = _GetClusterDescription(FLAGS.project or _GetDefaultProject(),
                                        FLAGS.google_bigtable_zone_name,
                                        cluster_name)

  metadata = {'ycsb_client_vms': len(vms),
              'bigtable_nodes': cluster_info.get('serveNodes')}

  # By default YCSB uses a BufferedMutator for Puts / Deletes.
  # This leads to incorrect update latencies, since since the call returns
  # before the request is acked by the server.
  # Disable this behavior during the benchmark run.
  run_kwargs = {
      'columnfamily': COLUMN_FAMILY,
      'clientbuffering': 'false'}
  load_kwargs = run_kwargs.copy()

  # During the load stage, use a buffered mutator with a single thread.
  # The BufferedMutator will handle multiplexing RPCs.
  load_kwargs['clientbuffering'] = 'true'
  if not FLAGS['ycsb_preload_threads'].present:
    load_kwargs['threads'] = 1
  samples = list(executor.LoadAndRun(vms,
                                     load_kwargs=load_kwargs,
                                     run_kwargs=run_kwargs))
  for sample in samples:
    sample.metadata.update(metadata)

  return samples
Given a string representing a Python object, return whatever tests
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/cloud_bigtable_ycsb_benchmark.py/Run--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/runner.py/TestLoader.loadByName