Skip to content

Commit 1a08f4d

Browse files
Formatting...again
1 parent 338e69e commit 1a08f4d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

pyperformance/data-files/benchmarks/bm_argparse_args/run_benchmark.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010

1111
def create_parser() -> argparse.ArgumentParser:
12-
parser = argparse.ArgumentParser(
13-
description="A CLI tool with many optional and positional arguments"
14-
)
12+
parser = argparse.ArgumentParser()
1513

1614
parser.add_argument("input_file", type=str, help="The input file")
1715
parser.add_argument("output_file", type=str, help="The output file")
@@ -49,7 +47,7 @@ def bench_argparse(loops: int) -> None:
4947
if __name__ == "__main__":
5048
runner = pyperf.Runner()
5149
runner.metadata["description"] = (
52-
"Benchmark the argparse program with many optional arguments"
50+
"Benchmark an argparse program with many optional arguments"
5351
)
5452

5553
runner.bench_time_func("argparse", bench_argparse)

pyperformance/data-files/benchmarks/bm_argparse_subparser/run_benchmark.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Benchmark the argparse module with multiple subparsers, each with their own
2+
Benchmark the argparse module with multiple subparsers, each with their own
33
subcommands, and then parse a series of command-line arguments.
44
55
Author: Savannah Ostrowski
@@ -38,7 +38,7 @@ def create_parser() -> argparse.ArgumentParser:
3838

3939
network_group = push_parser.add_argument_group("Network options")
4040
network_group.add_argument(
41-
"--dryrun", action="store_true", help="Do not push changes, only simulate"
41+
"--dryrun", action="store_true", help="Simulate changes"
4242
)
4343
network_group.add_argument(
4444
"--timeout", type=int, default=30, help="Timeout in seconds"
@@ -90,6 +90,6 @@ def bench_argparse(loops: int) -> None:
9090

9191
if __name__ == "__main__":
9292
runner = pyperf.Runner()
93-
runner.metadata["description"] = "Benchmark the argparse program with subparsers"
93+
runner.metadata["description"] = "Benchmark an argparse program with subparsers"
9494

9595
runner.bench_time_func("argparse", bench_argparse)

0 commit comments

Comments
 (0)