The gnocchiclient.benchmark
Module¶
-
class
gnocchiclient.benchmark.
BenchmarkPool
(max_workers=None)¶ Bases:
futurist._futures.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:
cliff.show.ShowOne
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
-
class
gnocchiclient.benchmark.
CliBenchmarkMeasuresAdd
(app, app_args, cmd_name=None)¶ Bases:
gnocchiclient.benchmark.CliBenchmarkBase
,gnocchiclient.v1.metric_cli.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:
gnocchiclient.benchmark.CliBenchmarkBase
,gnocchiclient.v1.metric_cli.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:
gnocchiclient.benchmark.CliBenchmarkBase
,gnocchiclient.v1.metric_cli.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:
gnocchiclient.benchmark.CliBenchmarkBase
,gnocchiclient.v1.metric_cli.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.
-
-
gnocchiclient.benchmark.
measure_job
(fn, *args, **kwargs)¶