Skip to content

Commit 606f633

Browse files
오원석오원석
오원석
authored and
오원석
committed
add all option
1 parent a020f76 commit 606f633

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

kaprese/bin/kaprese_run.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from rich.table import Table
1717
from rich.text import Text
1818

19-
from kaprese.core.benchmark import Benchmark
19+
from kaprese.core.benchmark import Benchmark, all_benchmarks
2020
from kaprese.core.engine import Engine
2121
from kaprese.core.runner import Runner
2222
from kaprese.utils.console import PanelConsole, console
@@ -321,6 +321,12 @@ def main(
321321
continue
322322
engines.append(engine)
323323
benchmarks: list[Benchmark] = []
324+
325+
# Load benchmarks
326+
# If no benchmark is specified, run all benchmarks
327+
if len(args.benchmark) == 0:
328+
benchmarks = all_benchmarks()
329+
324330
for bench_name in args.benchmark:
325331
bench = Benchmark.load(bench_name)
326332
if bench is None:

0 commit comments

Comments
 (0)