Add support for running multiple ty benchmarks at once

This commit is contained in:
Micha Reiser 2025-12-14 11:59:41 +01:00
parent deae877a0f
commit 3532efc08f
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,7 @@ def main() -> None:
parser.add_argument(
"--ty-path",
action="append",
type=Path,
help="Path to the ty binary to benchmark.",
)
@ -108,7 +109,11 @@ def main() -> None:
for tool_name in args.tool or TOOL_CHOICES:
match tool_name:
case "ty":
suites.append(Ty(path=args.ty_path))
if args.ty_path:
for path in args.ty_path:
suites.append(Ty(path=path))
else:
suites.append(Ty())
case "pyrefly":
suites.append(Pyrefly())
case "pyright":