The gnocchiclient.benchmark Module

class gnocchiclient.benchmark.BenchmarkPool(max_workers=None)

Bases: ProcessPoolExecutor

map_job(fn, iterable, **kwargs)
submit_job(times, fn, *args, **kwargs)
wait_job(verb, futures)
class gnocchiclient.benchmark.CliBenchmarkBase(app, app_args, cmd_name=None)

Bases: ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

class gnocchiclient.benchmark.CliBenchmarkMeasuresAdd(app, app_args, cmd_name=None)

Bases: CliBenchmarkBase, CliMeasuresAddBase

Do benchmark testing of adding measurements.

get_parser(prog_name)

Return an argparse.ArgumentParser.

take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class gnocchiclient.benchmark.CliBenchmarkMeasuresShow(app, app_args, cmd_name=None)

Bases: CliBenchmarkBase, CliMeasuresShow

Do benchmark testing of measurements show.

get_parser(prog_name)

Return an argparse.ArgumentParser.

take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class gnocchiclient.benchmark.CliBenchmarkMetricCreate(app, app_args, cmd_name=None)

Bases: CliBenchmarkBase, CliMetricCreateBase

Do benchmark testing of metric creation.

get_parser(prog_name)

Return an argparse.ArgumentParser.

take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class gnocchiclient.benchmark.CliBenchmarkMetricShow(app, app_args, cmd_name=None)

Bases: CliBenchmarkBase, CliMetricWithResourceID

Do benchmark testing of metric show.

get_parser(prog_name)

Return an argparse.ArgumentParser.

take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class gnocchiclient.benchmark.StopWatch

Bases: object

elapsed()
gnocchiclient.benchmark.measure_job(fn, *args, **kwargs)