From 23413a95bba0d8270f26b04447ca30382487ceaf Mon Sep 17 00:00:00 2001 From: "stephen.worsley" Date: Wed, 15 May 2024 12:58:10 +0100 Subject: [PATCH] fix sperf --- benchmarks/bm_runner.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/benchmarks/bm_runner.py b/benchmarks/bm_runner.py index 17625e1c..44b555ab 100644 --- a/benchmarks/bm_runner.py +++ b/benchmarks/bm_runner.py @@ -247,7 +247,7 @@ def add_arguments(self) -> None: ) @staticmethod - def csperf(args: argparse.Namespace, run_type: Literal["cperf", "sperf"]) -> None: + def csperf(args: argparse.Namespace, run_type: str) -> None: _setup_common() publish_dir = Path(args.publish_dir) @@ -289,16 +289,6 @@ def csperf(args: argparse.Namespace, run_type: Literal["cperf", "sperf"]) -> Non ) -class CPerf(_CSPerf): - """Class for parsing and running the 'cperf' argument.""" - - name = "cperf" - description = _CSPerf.description.format("CPerf") - epilog = _CSPerf.epilog.format("cperf") - - @staticmethod - def func(args: argparse.Namespace) -> None: - _CSPerf.csperf(args, "cperf") class SPerf(_CSPerf): @@ -310,7 +300,7 @@ class SPerf(_CSPerf): @staticmethod def func(args: argparse.Namespace) -> None: - _CSPerf.csperf(args, "sperf") + _CSPerf.csperf(args, ".*Scalability.*") class Custom(_SubParserGenerator): @@ -345,7 +335,7 @@ def main(): ) subparsers = parser.add_subparsers(required=True) - for gen in (Branch, CPerf, SPerf, Custom): + for gen in (Branch, SPerf, Custom): _ = gen(subparsers).subparser parsed = parser.parse_args()