aboutsummaryrefslogtreecommitdiff
path: root/autogpts/forge/run_benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/forge/run_benchmark')
-rwxr-xr-xautogpts/forge/run_benchmark9
1 files changed, 9 insertions, 0 deletions
diff --git a/autogpts/forge/run_benchmark b/autogpts/forge/run_benchmark
new file mode 100755
index 000000000..6830fe8d2
--- /dev/null
+++ b/autogpts/forge/run_benchmark
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# Kill processes using port 8080 if any.
+if lsof -t -i :8080; then
+ kill $(lsof -t -i :8080)
+fi
+# This is the cli entry point for the benchmarking tool.
+# To run this in server mode pass in `serve` as the first argument.
+poetry run agbenchmark "$@"