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, app_args: Namespace | None, cmd_name: str | None = None)¶
Bases:
ShowOne- get_parser(prog_name)¶
Return an
argparse.ArgumentParser.
- class gnocchiclient.benchmark.CliBenchmarkMeasuresAdd(app: App, app_args: Namespace | None, cmd_name: str | None = None)¶
Bases:
CliBenchmarkBase,CliMeasuresAddBaseDo 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, app_args: Namespace | None, cmd_name: str | None = None)¶
Bases:
CliBenchmarkBase,CliMeasuresShowDo 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, app_args: Namespace | None, cmd_name: str | None = None)¶
Bases:
CliBenchmarkBase,CliMetricCreateBaseDo 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, app_args: Namespace | None, cmd_name: str | None = None)¶
Bases:
CliBenchmarkBase,CliMetricWithResourceIDDo 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)¶