aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark_throughput.py
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-05-14 14:10:12 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-05-14 14:10:12 +0300
commitb5beb611a8b5e3135ccd9d8617ed07da680a3cc7 (patch)
tree81e5663cefda4d1bfe8a0258f45acbe47f8e473b /benchmark_throughput.py
parentc2a966e3ae6c129e294ab769143f48b75cad0dd9 (diff)
Fix benchmark_throughput args
Diffstat (limited to 'benchmark_throughput.py')
-rw-r--r--benchmark_throughput.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark_throughput.py b/benchmark_throughput.py
index 5bfa4d5..8a9d4a5 100644
--- a/benchmark_throughput.py
+++ b/benchmark_throughput.py
@@ -50,7 +50,7 @@ def run_benchmark(duration_seconds: int, payload_size: int = 100):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="FemtoQueue throughput benchmark")
- parser.add_argument("duration", type=int, help="Duration to run the benchmark (in seconds)", default=10)
+ parser.add_argument("--duration", type=int, help="Duration to run the benchmark (in seconds)", default=10, required=False)
args = parser.parse_args()
run_benchmark(args.duration)