aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbenchmark.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/benchmark.sh b/benchmark.sh
index 07f91aa..a1d5388 100755
--- a/benchmark.sh
+++ b/benchmark.sh
@@ -4,7 +4,7 @@ PROGRAM="src/detectCycles"
# Build release version
echo "Building release version..."
-make -C src release
+make -C src release -q
if [ ! -f "$PROGRAM" ]; then
echo "Error: Build failed."
@@ -12,17 +12,13 @@ if [ ! -f "$PROGRAM" ]; then
fi
echo "Benchmarking $PROGRAM"
-echo "======================================"
+echo -n "======================================"
# Run benchmark on each test file
time { for TEST_FILE in "$DATA_DIR"/*; do
if [ -f "$TEST_FILE" ]; then
FILENAME=$(basename "$TEST_FILE")
- echo "Testing: $FILENAME"
-
"$PROGRAM" "$TEST_FILE" > /dev/null 2>&1
-
- echo ""
fi
done }